Mismatch in gulp local and CLI versions

npm install -g gulp wasn't fixing it for me, from either in or out of the project folder. My gulp version was already correct in my package.json file. All I had to do was run npm install from within the project folder, and the gulp version from in the project folder was corrected.


To update your Local version npm install gulp@version_you_need

To update CLI version npm install -g gulp@version_you_need


Removing node_modules folder and running npm install gulp within that dir sorted my issue out.


I am answering my own question, just so it is useful for others.

  1. Is there a way to remove the global gulp version, but keep the project specific gulp?

No. AFAIK, you are required to install gulp globally as well as one specific to your project.

More info on gulp versions here.

  • Why do we need to install gulp globally and locally?
  • http://blog.dwaynecrooks.com/post/110903139442/why-do-we-need-to-install-gulp-globally-and
  • https://github.com/gulpjs/gulp/issues/171
  • https://github.com/gulpjs/gulp/issues/140
  1. Or can I update my global version gulp to @3.8.11?

Since I was facing a mismatch in my local version, I had to update it from the project folder itself.

npm install [email protected] --save

More info on this here.

  • http://www.eskocruz.com/gulp-version-mismatch

Tags:

Gulp