Answer the question
In order to leave comments, you need to log in
"Cannot find module" error when running Gulp after installing npm. Why?
Set up gulpfile. When creating a new project, I have gulpfile.js, package.json, and a folder with the project structure.
In the assembly I use the "gulp-webp", gulp-webp-html", "gulp-webpcss" plugins to work with webp. Also, as I understand it, you need to use the "webp-converter" plugin for this - it is also there.
After the local npm installation ( npm i ) when trying to run gulp, an error is thrown: Error: Cannot find module 'webp-converter/cwebp'.
Tell me why gulp can not find a plugin that is installed in dependencies and is in node_modules. And how to make it work correctly ?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question