Skip to content

Error: Cannot find module 'webp-converter/cwebp' >> problem and solution #30

@svyatoslavlp

Description

@svyatoslavlp

Install
npm i gulp-webp --save-dev
npm i gulp-webp-html --save-dev
npm i gulp-webpcss --save-dev
and other packages for Gulp
then run gulp in the terminal
and I get this:
internal / modules / cjs / loader.js: 985
throw err;
^

Error: Cannot find module 'webp-converter / cwebp'
Require stack:

  • /home/svyatoslavlp/github/2020/akadem1_2020/node_modules/webpcss/dist/WebpBase64.js
  • /home/svyatoslavlp/github/2020/akadem1_2020/node_modules/webpcss/dist/Webpcss.js
  • /home/svyatoslavlp/github/2020/akadem1_2020/node_modules/webpcss/dist/index.js
  • /home/svyatoslavlp/github/2020/akadem1_2020/node_modules/gulp-webpcss/index.js
  • /home/svyatoslavlp/github/2020/akadem1_2020/gulpfile.js
  • /home/svyatoslavlp/.nvm/versions/node/v12.16.1/lib/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js
  • /home/svyatoslavlp/.nvm/versions/node/v12.16.1/lib/node_modules/gulp-cli/index.js
  • /home/svyatoslavlp/.nvm/versions/node/v12.16.1/lib/node_modules/gulp-cli/bin/gulp.js
    at Function.Module._resolveFilename (internal / modules / cjs / loader.js: 982: 15)
    at Function.Module._load (internal / modules / cjs / loader.js: 864: 27)
    at Module.require (internal / modules / cjs / loader.js: 1044: 19)
    at require (internal / modules / cjs / helpers.js: 77: 18)
    at Object. (/home/svyatoslavlp/github/2020/akadem1_2020/node_modules/webpcss/dist/WebpBase64.js:33:19)
    at Module._compile (internal / modules / cjs / loader.js: 1158: 30)
    at Object.Module._extensions..js (internal / modules / cjs / loader.js: 1178: 10)
    at Module.load (internal / modules / cjs / loader.js: 1002: 32)
    at Function.Module._load (internal / modules / cjs / loader.js: 901: 14)
    at Module.require (internal / modules / cjs / loader.js: 1044: 19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/svyatoslavlp/github/2020/akadem1_2020/node_modules/webpcss/dist/WebpBase64.js',
    '/home/svyatoslavlp/github/2020/akadem1_2020/node_modules/webpcss/dist/Webpcss.js',
    '/home/svyatoslavlp/github/2020/akadem1_2020/node_modules/webpcss/dist/index.js',
    '/home/svyatoslavlp/github/2020/akadem1_2020/node_modules/gulp-webpcss/index.js',
    '/home/svyatoslavlp/github/2020/akadem1_2020/gulpfile.js',
    '/home/svyatoslavlp/.nvm/versions/node/v12.16.1/lib/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js',
    '/home/svyatoslavlp/.nvm/versions/node/v12.16.1/lib/node_modules/gulp-cli/index.js',
    '/home/svyatoslavlp/.nvm/versions/node/v12.16.1/lib/node_modules/gulp-cli/bin/gulp.js'
    ]
    }

solution (might come in handy):
copy files from: node_modules> webp-converter> src
in: node_modules> webp-converter

everything is working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions