[[+content_image]]
U
U
Uncle Tolya2020-07-09 18:25:02
Node.js
Uncle Tolya, 2020-07-09 18:25:02

Error: Cannot find module 'webp-converter/cwebp' when running gulp?

spoiler

[[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'
  ]
}



With grief, I made a gulp assembly in half, everything seemed to be fine.
This error is coming up here the other day. Why does he not see this module?
I looked in the node_modules folder - it seems to be in place.
Tried reinstalling the gulp-wepp-css plugin and npm with nodejs -- doesn't help.

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
V
Volodymyp, 2020-10-11
@sh4rov

Who has problems with the WEBPCSS plugin, you need to install the converter with the command -
npm install [email protected] --save-dev Helped
me

U
Uncle Tolya, 2020-07-09
@sh4rov

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 :)

H
hash_buy_yourself, 2020-07-28
@hash_buy_yourself

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 question

Ask a Question

731 491 924 answers to any question