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 task is not using gulp-cli but gulp #3890

Closed
Saturate opened this Issue Mar 28, 2017 · 4 comments

Comments

Projects
None yet
5 participants
@Saturate

Saturate commented Mar 28, 2017

The task should be using the node module gulp-cli and not gulp. https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md

This is the old way of invoking gulp, and does not work with newer versions of gulp.

The default configuration of the gulp runner can be found here: https://github.com/Microsoft/vsts-tasks/blob/c932e92b4db984e06dcec9d6537bd9ca2a0de72c/Tasks/Gulp/task.json#L78-L84

It would be okay to use the locally install gulp as a default, or have a flag to make this the priority. But there should be no global gulp module.

@bryanmacfarlane bryanmacfarlane self-assigned this Mar 29, 2017

@bryanmacfarlane bryanmacfarlane modified the milestone: TFS.vNext (onPrem) Mar 29, 2017

@wawyed

This comment has been minimized.

wawyed commented Jun 18, 2018

Hi, is this something that can be looked at. We are trying to update to gulp4 and we have to go and manually uninstall/update the global version of gulp on each build task...

Thanks.

@scott-lin

This comment has been minimized.

scott-lin commented Jul 25, 2018

@wawyed, I'm running into the same and looking for a workaround until the fix is provided. How did you "uninstall/update the global version of gulp" in the build definition?

+1 for looking at this issue sooner than later.

@moswald

This comment has been minimized.

Member

moswald commented Nov 16, 2018

We have an internal bug filed for fixing this. Gulp should be using v4 in the next few releases.

In the meantime, the next Azure DevOps release will include a new version of the Gulp task that will let you supply a path to a custom gulp.

@moswald moswald closed this Nov 16, 2018

@scott-lin

This comment has been minimized.

scott-lin commented Nov 16, 2018

In the meantime, the next Azure DevOps release will include a new version of the Gulp task that will let you supply a path to a custom gulp.

Just for completeness/reference, see #7839 regarding Matt's comment.

Thanks, Matt!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment