gulpjs / gulp-util

[deprecated] - See https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
MIT License
830 stars 104 forks source link

Cannot find module 'gulp-util' #154

Closed harshabhat14 closed 6 years ago

harshabhat14 commented 6 years ago

For gulp war i am getting below error internal/modules/cjs/loader.js:573 throw err; ^

Error: Cannot find module 'gulp-util' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15) at Function.Module._load (internal/modules/cjs/loader.js:497:25) at Module.require (internal/modules/cjs/loader.js:626:17) at require (internal/modules/cjs/helpers.js:20:18) at Object. (/usr/lib/nodejs/gulp/bin/gulp.js:4:13) at Module._compile (internal/modules/cjs/loader.js:678:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:689:10) at Module.load (internal/modules/cjs/loader.js:589:32) at tryModuleLoad (internal/modules/cjs/loader.js:528:12) at Function.Module._load (internal/modules/cjs/loader.js:520:3)

After i tried so many times node version and npm install.

demurgos commented 6 years ago

I don't think it's a gulp or gulp-util issue but a problem with npm or one of your dependencies.

Your issue is not actionable as it is: it's missing a lot of context: What are your npm, node, gulp, gulp-cli versions, is gulp-util in your node_modules directory (if so which version?), which Gulp plugins are you using (and which version), are you using gulp-cli, how are you executing your tasks? What is even "gulp war"?

gulp-util is deprecated. Most popular plugins have moved away from it. Make sure that your plugins are still maintained, use their latest version.

kedar8 commented 5 years ago

From later versions, there is no need to manually install gulp-util.

Check to get[started page](https://github.com/gulpjs/gulp/blob/master/docs/getting-started.md).

If you still hit this problem try reinstalling your project's local packages:

rm -rf node_modules/ npm install

if u want to install manually : - You also need to install gulp-util: npm install gulp-util --save-dev

allafridman commented 4 years ago

I cannot build this either