Alan2
Alan2

Reputation: 24602

Is there an NPM location where I can download Gulp 4 or a pre-release of Gulp 4?

I'm using a package.son where I list all the Gulp NPM modules. In that file I have "gulp": "3.8.11",

I would like to use Gulp4 and I read here some different ways to access it:

   http://stackoverflow.com/questions/33429727/how-do-i-install-gulp-4

But is it possible to also do this with a package.json? When I try to look at versions of "gulp" the auto part of Visual Studio doesn't prompt me for anything more than a 3.9 version.

Also is there a way that I could have some tasks use Gulp3 and others uses Gulp4?

Upvotes: 0

Views: 161

Answers (2)

Samantha J T Star
Samantha J T Star

Reputation: 32838

Here is the only solution that I could get to work:

"gulp-4.0.build": "4.0.0-build.a271520",

Note that the version details on the right were added automatically by Visual Studio.

Upvotes: 1

SteveLacy
SteveLacy

Reputation: 4160

Duplicate, but regardless:

npm install gulpjs/gulp#4.0 --save-dev

That adds this to the package.json:

"gulp": "gulpjs/gulp#4.0"

Upvotes: 1

Related Questions