A
A
Andy Oker2020-10-04 22:08:08
JavaScript
Andy Oker, 2020-10-04 22:08:08

"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'.
5f7a1c8446664350917406.png

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 question

Ask a Question

731 491 924 answers to any question