Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gulp module not found. #46

Open
ndeeH opened this issue Mar 6, 2018 · 3 comments
Open

Gulp module not found. #46

ndeeH opened this issue Mar 6, 2018 · 3 comments

Comments

@ndeeH
Copy link

ndeeH commented Mar 6, 2018

Hi there,
I have installed MSBuild.Node and MSBuild.Gulp.
After intalling additional Nugets "Node.js" and "Npm" - msbuild was able to execute "npm install".

But my Gulp target still gets this error:

packages\MSBuild.Gulp.0.5.1\build\MSBuild.Gulp.targets(20):packages\MSBuild.Gulp.0.5.1\
build\MSBuild.Gulp.targets(20,9):   
Error : 'Gulp module not found. Please install Gulp in the node module path   
'C:\b\2\s\packages\Node.js.5.3.0'.'
--
Process   'msbuild.exe' exited with code '1'.

Gulp is alredy installed locally via npm.

Any ideas or am I complety on a wrong path?

@auspex
Copy link

auspex commented Aug 21, 2018

I'm having a similar issue with dotnet publish. Annoyingly, it works from my Gitlab CI pipeline, but not if I run it as myself from the build server.

C:\Users\derbro\.nuget\packages\msbuild.gulp\0.5.1\build\MSBuild.Gulp.targets(20,9): error : 'Gulp module not found. Please install Gulp in the node module path
 'C:\Users\derbro\AppData\Roaming\npm'.' [C:\gitlab-runner\builds\b0800511\0\console\uk.ac.sahfos.cpr.console.web\uk.ac.sahfos.cpr.console.web\uk.ac.sahfos.cpr.console.web.csproj]

I'm seriously considering just copying the ...\Appdata\Roaming\npm folder from the one used by the gitlab pipelines.

@auspex
Copy link

auspex commented Aug 29, 2019

A year later, a new system, and I'm having it again! I never did solve it, I just stopped trying to run it as myself on the Build server.

@dnovacik
Copy link

@auspex sorry to revive a bit of a necro, but I've resolved this by adding a property group to the .csproj file, like so:

<PropertyGroup><NpmCommand>install -g gulp</NpmCommand></PropertyGroup>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants