@DON1986

Почему в npm не устанавливается imagemin-pngquant?

При установке выдает такой ответ. Как можно исправить? Или посоветуйте другой пакет для оптимизации изображений.

npm i imagemin-pngquant --save-dev

> pngquant-bin@5.0.0 postinstall C:\Users\Іван\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\Іван\desktop\serf\node_modules\bin-check\index.js:22:12
at C:\Users\Іван\desktop\serf\node_modules\executable\index.js:27:4
at FSReqWrap.oncomplete (fs.js:153:5)
npm WARN serf@1.0.0 No description
npm WARN serf@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"ia32"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pngquant-bin@5.0.0 postinstall: `node lib/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pngquant-bin@5.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Іван\AppData\Roaming\npm-cache\_logs\2018-09-08T11_46_10_989Z-debug.log
  • Вопрос задан
  • 889 просмотров
Решения вопроса 1
sim3x
@sim3x
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 fsevents@1.2.4:

wanted {"os":"darwin","arch":"any"}
(current: {"os":"win32","arch":"ia32"})
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы