Giter Club home page Giter Club logo

Comments (16)

CampbellNash avatar CampbellNash commented on September 13, 2024 3

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.

ShakeySnake avatar ShakeySnake commented on September 13, 2024 2

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

image

image

image

from azure-pipelines-tasks.

sven5 avatar sven5 commented on September 13, 2024 1

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.

bryanmacfarlane avatar bryanmacfarlane commented on September 13, 2024

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.

sdaly2107 avatar sdaly2107 commented on September 13, 2024

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.

bryanmacfarlane avatar bryanmacfarlane commented on September 13, 2024

OK - I'll have someone investigate. Also useful to note it's tfsvc and not git.

from azure-pipelines-tasks.

TingluoHuang avatar TingluoHuang commented on September 13, 2024

I am not able to repro this.
Here is what I tried:

  1. Push our vso-agent-task repo to my local tfvc team project.
  2. Create a definition:
    1
    2
    3

I got a green build without any error.

from azure-pipelines-tasks.

sdaly2107 avatar sdaly2107 commented on September 13, 2024

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

image

image

from azure-pipelines-tasks.

chrispat avatar chrispat commented on September 13, 2024

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.

bryanmacfarlane avatar bryanmacfarlane commented on September 13, 2024

Still an issue?

from azure-pipelines-tasks.

brettpostin avatar brettpostin commented on September 13, 2024

I was having this issue. I believe the spaces in the path were the cause. This fix seems to have resolved it for me:

1b01011

I had to change the task manually. Is there a better way to update agent tasks?

from azure-pipelines-tasks.

bryanmacfarlane avatar bryanmacfarlane commented on September 13, 2024

Awesome. Thanks @brettpostin

from azure-pipelines-tasks.

brettpostin avatar brettpostin commented on September 13, 2024

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.

ps2goat avatar ps2goat commented on September 13, 2024

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.

anischohan avatar anischohan commented on September 13, 2024

I resolved by removing a redundant .nprmc file in the root of the repo.

from azure-pipelines-tasks.

alisebt avatar alisebt commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.