Cannot find module 'gulp-util'
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.
After i tried so many times node version and npm install.
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.
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
I cannot build this either