N
N
notveganmustdie2015-05-21 00:49:24
gulp.js
notveganmustdie, 2015-05-21 00:49:24

Error while installing gulp-imagemin. Can anyone help solve the problem?

The thing is necessary, but I can not install it in any way. I searched for an answer on github, but no one had such a problem. Tried googling but couldn't find an answer what the postinstall module is that it can't find. Updated Node and npm to the latest version but nothing has changed. Windows 8.1.
After npm install --save-dev gulp-imagemin , these are the console messages:

> [email protected] postinstall C:\HTML\gulp\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\imagemin-gifsicle\node_modules\gifsicle\node_modules\bin-wrapper\node_modules\bin-check\node_modules\ spawn-sync
> node postinstall
/
module.js:340
throw err;
^
Error: Cannot find module 'C:\postinstall'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module .js:497:10)
at startup (node.js:119:16)
at node.js:906:3
-
> [email protected] postinstall C:\HTML\gulp\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\imagemin-optipng\node_modules\optipng-bin\node_modules\bin-wrapper\node_modules\bin-check\ node_modules\spawn-sync
> node postinstall
|
module.js:340
throw err;
^
Error: Cannot find module 'C:\postinstall'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module .js:497:10)
at startup (node.js:119:16)
at node.js:906:3
/
> [email protected] postinstall C:\HTML\gulp\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\imagemin-jpegtran\node_modules\jpegtran-bin\node_modules\bin-wrapper\node_modules\bin-check\ node_modules\spawn-sync
> node postinstall
-
module.js:340
throw err;
^
Error: Cannot find module 'C:\postinstall'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module .js:497:10)
at startup (node.js:119:16)
at node.js:906:3
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing imagemin-jpegtran @4.1.0
npm WARN optional dep failed, continuing [email protected]
[email protected] node_modules\gulp-imagemin
├── [email protected]
├── [email protected] (escape-string-regexp @1.0.3, [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected] 0.6.5)
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected] 1.0.0, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected] .0, [email protected], [email protected], [email protected], [email protected])

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MaxC, 2015-07-13
@MaxC

Helped me:
npm cache clear

A
Andrey B., 2015-05-21
@andykov

Try to put firstnpm install imagemin-pngquant

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question