Всем доброго дня, проблема при установке gulp-imagemin и gulp-image-optimization.
Ошибки следующие:
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)
> optipng-bin@0.3.11 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 basic_gulp@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: gifsicle@0.1.7 (node_modules/image-min/node_modules/gifsicle):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: gifsicle@0.1.7 postinstall: `node index.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: jpegtran-bin@0.2.8 (node_modules/image-min/node_modules/jpegtran-bin):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: jpegtran-bin@0.2.8 postinstall: `node index.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: optipng-bin@0.3.11 (node_modules/image-min/node_modules/optipng-bin):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: optipng-bin@0.3.11 postinstall: `node index.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1