Comments (16)
I only have 1 npm task and 1 gulp task but I keep getting the following error on the Gulp task.
Gulp is not installed globally (or is not in the path of the user the agent is running as) and it is not in the local working folder: C:\build01_work\1\s\node_modules\gulp\bin\gulp.js
Is this related to the above?
from azure-pipelines-tasks.
Even though the UI has changed quite a bit here I'm still getting this error at the gulp step. Is there a more public fix somewhere?:
2017-08-17T19:43:05.9835475Z ##[section]Starting: gulp
2017-08-17T19:43:05.9835475Z ==============================================================================
2017-08-17T19:43:05.9835475Z Task : Gulp
2017-08-17T19:43:05.9835475Z Description : Node.js streaming task based build system
2017-08-17T19:43:05.9835475Z Version : 0.5.31
2017-08-17T19:43:05.9835475Z Author : Microsoft Corporation
2017-08-17T19:43:05.9835475Z Help : More Information
2017-08-17T19:43:05.9835475Z ==============================================================================
2017-08-17T19:43:06.7809784Z [command]C:\tools\nodejs\node.cmd D:\a_work\302\s\shr-ui-app\node_modules\gulp\bin\gulp.js vstsbuild --gulpfile D:\a_work\302\s\shr-ui-app --packagePath=D:\a_work\302\a
2017-08-17T19:43:06.7966040Z Node v6.9.1 and NPM v3.10.8
2017-08-17T19:43:06.7966040Z Set "USE_NODEJS0" env.var to use Node v0.10.26 and NPM v1.4.6
2017-08-17T19:43:06.7966040Z Set "USE_NODEJS4" env.var to use Node v4.2.4 and NPM v2.14.12
2017-08-17T19:43:07.6248431Z [19:43:07] Local gulp not found in D:\a_work\302\s
2017-08-17T19:43:07.6248431Z [19:43:07] Try running: npm install gulp
2017-08-17T19:43:07.6560344Z ##[error]Gulp failed with error: C:\tools\nodejs\node.cmd failed with return code: 1
2017-08-17T19:43:07.6560344Z ##[section]Finishing: gulp
from azure-pipelines-tasks.
I had the same problem and the resolution was to give the path including guplfile.js in the gulp task:
"Intranet Core/src/gulpfile.js"
However, the npm task must not contain the package.json file name:
"Intranet Core/src"
The documentation could be a little more clear for these settings.
Sven
from azure-pipelines-tasks.
Is this windows or *nix?
On the task, use the browse (...) to browse to your gulpfile. the resultant path should be relative to the root of the repo.
Is gulp in your packages.json? printing your package.json would help
from azure-pipelines-tasks.
Windows...
I used the (...) to add the gulpfile path, but still no joy.
Gulp is in my package.json file and all is working ok locally. Contents of package.json is
{
"version": "1.0.0",
"name": "PDEnquiries",
"private": true,
"dependencies": {
},
"devDependencies": {
"phantomjs": "",
"gulp-karma": "",
"karma": "0.13",
"karma-jasmine": "",
"karma-phantomjs-launcher": "",
"gulp": "",
"gulp-bower": "",
"gulp-load-plugins": "",
"gulp-util": ""
}
}
from azure-pipelines-tasks.
OK - I'll have someone investigate. Also useful to note it's tfsvc and not git.
from azure-pipelines-tasks.
I am not able to repro this.
Here is what I tried:
I got a green build without any error.
from azure-pipelines-tasks.
Only difference there I see is that you have another npm step to install gulp. Have tried that too, and still get the same error.
Starting task: gulp
Executing the powershell script: C:\LR\MMS\Services\Mms\TaskAgentProvisioner\Tools\tasks\Gulp\0.5.2\Gulptask.ps1
C:\NPM\Modules\gulp.cmd --gulpfile C:\a\bf6a5db2\Sse.MSProgramme.Sharepoint\PD Enquiries\PD\src\PDEnquiries\gulpfile.js
Local gulp not found in C:\a\bf6a5db2\Sse.MSProgramme.Sharepoint
Try running: npm install gulp
Unexpected exit code 1 returned from tool gulp.cmd
from azure-pipelines-tasks.
It looks like the working directory is not getting set properly based on this C:\a\bf6a5db2\Sse.MSProgramme.Sharepoint @TingluoHuang that might be the best place to start looking
from azure-pipelines-tasks.
Still an issue?
from azure-pipelines-tasks.
I was having this issue. I believe the spaces in the path were the cause. This fix seems to have resolved it for me:
I had to change the task manually. Is there a better way to update agent tasks?
from azure-pipelines-tasks.
Awesome. Thanks @brettpostin
from azure-pipelines-tasks.
For additional info, there's currently no way to update tasks other than manually. Should be coming in update 1...
https://twitter.com/tfsbuck/status/641238084852408322
from azure-pipelines-tasks.
As an FYI for others, I updated the version of my NPM Install task, and didn't notice that the working directory was blanked out. That caused the gulp task to fail because my package.json file wasn't found, and thus no local copy of gulp was found.
from azure-pipelines-tasks.
I resolved by removing a redundant .nprmc file in the root of the repo.
from azure-pipelines-tasks.
In my case, it was because I defined npm in the agent's capabilities in a wrong way. after correcting the variable and restarting the agent the problem has been resolved!
from azure-pipelines-tasks.
Related Issues (20)
- [REGRESSION]: AzureKeyVault@2 fails reading secrets from a variable group linked to a Key Vault on classic release pipeline HOT 4
- Docker@2 Inspection fail when Runing on Selfhosted agent
- [BUG]: bash task incorrectly parses string parameter containing regular expression pattern HOT 3
- [BUG]: DockerCompose@1 failed with Version mismatch error HOT 6
- [BUG]: GitHubComment@0 fails with "Resource not accessible by integration"
- [REGRESSION]: Failed to obtain the Json Web Token(JWT) using service principal client ID HOT 1
- [enhancement]: Make CopyFiles usable to copy single files out of source folders with a lot of subfolders/subpaths HOT 1
- [Question]: What code coverage formats does VSTest@3 support for automatic publishing?
- [BUG]: AzureFunctionApp is not accepting package variable correctly HOT 1
- [BUG]: FileTransform@V2 prints error, but replaces strings HOT 1
- [BUG]: AzureKeyVault task ignores no_proxy env variable
- [enhancement]: UseDotNet should support `major.minor.patchXX' syntax to support floating within an SDK feature band HOT 2
- [BUG]: AzureCLI@2 failOnStandardError does not fail with stderr on Windows
- [BUG]: AzureFunctionAppV2 has invalid json for Russian Resource files HOT 3
- [enhancement]: Allow Options to be passed to Compose
- [BUG]: UseDotNet task installs x86 build on Windows arm64 HOT 2
- [BUG]: Data issue with Azure PowerShell telemetry - ADO telemetry data not recorded. HOT 2
- [BUG]: Getting warnining Task 'Azure Key Vault' version 1 (AzureKeyVault@1) is deprecated while using library linked with keyvault HOT 23
- [BUG]: Latest ArtifactTool binary from UniversalPackage task is not compatible with CentOS HOT 8
- [Question]: What is the FileTransform@1 migration path? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-pipelines-tasks.