Answer the question
In order to leave comments, you need to log in
How to fix error when installing gulp-imagemin and other similar plugins?
Hello everyone, I have a problem installing gulp-imagemin and gulp-image-optimization.
The errors are the following:
at assertPath (path.js:7:11)
at Object.basename (path.js:1355:5)
at /Users/sg/Documents/work_web/praweb/design_studio/node_modules/image-min/node_modules/download/index.js:35:43
at each (/Users/sg/Documents/work_web/praweb/design_studio/node_modules/image-min/node_modules/each-async/each-async.js:63:4)
at module.exports (/Users/sg/Documents/work_web/praweb/design_studio/node_modules/image-min/node_modules/download/index.js:33:5)
at /Users/sg/Documents/work_web/praweb/design_studio/node_modules/image-min/node_modules/bin-wrapper/index.js:108:20
at /Users/sg/Documents/work_web/praweb/design_studio/node_modules/image-min/node_modules/bin-wrapper/index.js:141:24
at /Users/sg/Documents/work_web/praweb/design_studio/node_modules/image-min/node_modules/bin-check/index.js:30:20
at /Users/sg/Documents/work_web/praweb/design_studio/node_modules/image-min/node_modules/executable/index.js:39:20
at FSReqWrap.oncomplete (fs.js:123:15)
> [email protected] postinstall /Users/sg/Documents/work_web/praweb/design_studio/node_modules/image-min/node_modules/optipng-bin
> node index.js
path.js:7
throw new TypeError('Path must be a string. Received ' + inspect(path));
^
....
npm WARN [email protected] No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/image-min/node_modules/gifsicle):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] postinstall: `node index.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/image-min/node_modules/jpegtran-bin):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] postinstall: `node index.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/image-min/node_modules/optipng-bin):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] postinstall: `node index.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
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