I just upgraded from node 0.12.x to 4.1.0. After doing so gulp
no longer works. Here is what I'm seeing in the console after I try to run gulp
module.js:338
throw err;
^
Error: Cannot find module '/Users/me/.node/lib/node_modules/gulp/node_modules/v8flags/cache/4.5.103.35.flags.json'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:286:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/Users/me/.node/lib/node_modules/gulp/bin/gulp.js:25:22)
at Module._compile (module.js:434:26)
at Object.Module._extensions..js (module.js:452:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:475:10)
I've tried running npm install
, and updating to the latest version of gulp
but that didn't fix the problem. Any ideas on how to fix this?
Gulp 3.9. 1 will work with Node 8 (latest noded 8 is 8.17.
Automatically install npm, bower, tsd, typings, composer and pip packages/dependencies if the relative configurations are found in the gulp file stream respectively. Primary objective. Installation. For global use with slush.
Gulp is yet another tool from open source community to automate repetitive tasks in web development. While tools like bower, npm (Node Package Manager) helps us to download and configure re-usable packages in our application, Gulp helps us to automate many of the time consuming repetitive client side tasks.
You can fix it by deleting the "npm" and "npm-cache" folders in "/usr/local/".
Then do a
"npm install -g npm"
Followed by:
"npm install -g gulp"
Everything should now be updated and ready to rock!
EDIT: On Windows the folders can be found in "/users/(username)/AppData/Roaming"
Delete the Gulp module in the error, so in your case delete this folder
/Users/me/.node/lib/node_modules/gulp
Then clean your npm cache:
$ npm cache clean
And finally install Gulp globally again:
$ npm install -g gulp
Then you should find it works again - I did!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With