D
D
DON19862018-09-08 14:52:03
npm
DON1986, 2018-09-08 14:52:03

Why doesn't npm install imagemin-pngquant?

When installing, it gives the following response. How can I fix it? Or recommend another image optimization package.
npm i imagemin-pngquant --save-dev
> [email protected] postinstall C:\Users\Ivan\desktop\serf\node_modules\pngquant-bin
> node lib/install.js
internal/child_process.js:323
throw errnoException(err, 'spawn');
^
Error: spawn UNKNOWN
at _errnoException (util.js:992:11)
at ChildProcess.spawn (internal/child_process.js:323:11)
at exports.spawn (child_process.js:502:9)
at C:\Users\ Ivan\desktop\serf\node_modules\bin-check\index.js:22:12
at C:\Users\Ivan\desktop\serf\node_modules\executable\index.js:27:4
at FSReqWrap.oncomplete (fs.js:153:5)
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents)
: "} (current: {"os":"win32","arch":"ia32"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ivan\AppData\Roaming\npm-cache\_logs\2018-09-08T11_46_10_989Z-debug.log

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2018-09-08
@DON1986

npm ERR! This is probably not a problem with npm . There is likely additional logging output above.
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY:
Unsupported platform for [email protected] :
wanted {"os":"darwin","arch":"any"}
( current : {"os":" win32 ","arch": "ia32"})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question