Answer the question
In order to leave comments, you need to log in
Can't install gulp-image (gulp-imagemin), what could be the problem?
Previously, everything was installed, but now it's not.
Tried removing and installing node.js with npm.
Tried with and without SUDO.
I tried to install similar packages - gulp-imagmin, gulp-image-optimization
The error constantly crashes.
The solution cannot be googled.
What can be wrong?
Other packages install fine.
MacBook-Air:t5 Acrob$ sudo npm i -D gulp-image
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
> [email protected] postinstall /Users/Acrob/t5/node_modules/gifsicle
> node lib/install.js
⚠ EACCES: permission denied, mkdir '/Users/Acrob/t5/node_modules/gifsicle/vendor'
⚠ gifsicle pre-build test failed
ℹ compiling from source
/Users/Acrob/t5/node_modules/onetime/index.js:15
throw new Error(fnName + ' can only be called once.');
^
Error: callback() can only be called once.
at onetime (/Users/Acrob/t5/node_modules/onetime/index.js:15:11)
at /Users/Acrob/t5/node_modules/download/index.js:156:5
at ConcatStream.<anonymous> (/Users/Acrob/t5/node_modules/concat-stream/index.js:36:43)
at emitNone (events.js:111:20)
at ConcatStream.emit (events.js:208:7)
at finishMaybe (/Users/Acrob/t5/node_modules/readable-stream/lib/_stream_writable.js:620:14)
at endWritable (/Users/Acrob/t5/node_modules/readable-stream/lib/_stream_writable.js:628:3)
at ConcatStream.Writable.end (/Users/Acrob/t5/node_modules/readable-stream/lib/_stream_writable.js:584:41)
at DuplexWrapper.onend (/Users/Acrob/t5/node_modules/readable-stream/lib/_stream_readable.js:577:10)
at Object.onceWrapper (events.js:313:30)
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
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. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Acrob/.npm/_logs/2018-02-22T14_34_36_143Z-debug.log
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question