Answer the question
In order to leave comments, you need to log in
[[+content_image]]
Error: Cannot find module 'webp-converter/cwebp' when running gulp?
[[email protected] jetro]$ gulp
Error: Cannot find module 'webp-converter/cwebp'
Require stack:
- /home/sh4rov/front/jetro/node_modules/webpcss/dist/WebpBase64.js
- /home/sh4rov/front/jetro/node_modules/webpcss/dist/Webpcss.js
- /home/sh4rov/front/jetro/node_modules/webpcss/dist/index.js
- /home/sh4rov/front/jetro/node_modules/gulp-webpcss/index.js
- /home/sh4rov/front/jetro/gulpfile.js
- /usr/lib/node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js
- /usr/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js
- /usr/lib/node_modules/gulp/node_modules/gulp-cli/index.js
- /usr/lib/node_modules/gulp/bin/gulp.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1029:15)
at Function.Module._load (internal/modules/cjs/loader.js:898:27)
at Module.require (internal/modules/cjs/loader.js:1089:19)
at require (internal/modules/cjs/helpers.js:73:18)
at Object.<anonymous> (/home/sh4rov/front/jetro/node_modules/webpcss/dist/WebpBase64.js:33:19)
at Module._compile (internal/modules/cjs/loader.js:1200:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1049:32)
at Function.Module._load (internal/modules/cjs/loader.js:937:14)
at Module.require (internal/modules/cjs/loader.js:1089:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/sh4rov/front/jetro/node_modules/webpcss/dist/WebpBase64.js',
'/home/sh4rov/front/jetro/node_modules/webpcss/dist/Webpcss.js',
'/home/sh4rov/front/jetro/node_modules/webpcss/dist/index.js',
'/home/sh4rov/front/jetro/node_modules/gulp-webpcss/index.js',
'/home/sh4rov/front/jetro/gulpfile.js',
'/usr/lib/node_modules/gulp/node_modules/gulp-cli/lib/shared/require-or-import.js',
'/usr/lib/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js',
'/usr/lib/node_modules/gulp/node_modules/gulp-cli/index.js',
'/usr/lib/node_modules/gulp/bin/gulp.js'
]
}
Answer the question
In order to leave comments, you need to log in
Who has problems with the WEBPCSS plugin, you need to install the converter with the command -
npm install [email protected] --save-dev Helped
me
That's why I'm asking questions here. When you try to formulate them, you begin to look at the situation a little more clearly.
It turns out I made a simple mistake. I download the gulp-webp-css plugin and include gulp-webcss.
For such stupid mistakes you have to pay with wasted time :)
Duck it used to work, apparently the author decided to break it and pushed a new one with the correction of some errors in variable naming.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question