When I try to install gulp-imagemin in bash using the command npm install gulp-imagemin --save-dev I get a whole lot of errors as shown below. This is my first time using gulp (or a build tool). I have installed several other plugins and ran them fine. This is the first error I have seen.
I am running Windows Vista.
Thank you in advance.
Dimitris (master) performance-optimization $ npm install --save-dev gulp-imagem
in
-
> [email protected] postinstall c:\Users\Dimitris\documents\nanodegree\performance-
optimization\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\image
min-gifsicle\node_modules\gifsicle
> node lib/install.js
module.js:338
throw err;
^
Error: Cannot find module 'is-extglob'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (c:\Users\Dimitris\documents\nanodegree\performance-op
timization\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\vinyl-f
s\node_modules\glob-stream\node_modules\glob-parent\node_modules\is-glob\index.j
s:8:17)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
> [email protected] postinstall c:\Users\Dimitris\documents\nanodegree\performan
ce-optimization\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\im
agemin-optipng\node_modules\optipng-bin
> node lib/install.js
module.js:338
throw err;
^
Error: Cannot find module 'is-extglob'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (c:\Users\Dimitris\documents\nanodegree\performance-op
timization\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\vinyl-f
s\node_modules\glob-stream\node_modules\glob-parent\node_modules\is-glob\index.j
s:8:17)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
npm WARN optional dep failed, continuing [email protected]
> [email protected] postinstall c:\Users\Dimitris\documents\nanodegree\performa
nce-optimization\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\i
magemin-jpegtran\node_modules\jpegtran-bin
> node lib/install.js
module.js:338
throw err;
^
Error: Cannot find module 'is-extglob'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (c:\Users\Dimitris\documents\nanodegree\performance-op
timization\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\vinyl-f
s\node_modules\glob-stream\node_modules\glob-parent\node_modules\is-glob\index.j
s:8:17)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
npm ERR! Windows_NT 6.0.6002
npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev" "gulp-imagemin"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! path C:\Users\Dimitris\AppData\Roaming\npm-cache\is-extglob\1.0.0\packa
ge\package.json
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! Error: EPERM, rename 'C:\Users\Dimitris\AppData\Roaming\npm-cache\is-ex
tglob\1.0.0\package\package.json'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM, rename 'C:\Users\Dimitris\AppData\Roaming\npm-cache\i
s-extglob\1.0.0\package\package.json']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! path: 'C:\\Users\\Dimitris\\AppData\\Roaming\\npm-cache\\is-extglob\\
1.0.0\\package\\package.json',
npm ERR! parent: 'is-glob' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! c:\Users\Dimitris\documents\nanodegree\performance-optimization\npm
-debug.log
/c/Program Files/nodejs/npm: line 14: 7708 Signal 112 (core dumped
) "$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
change
npm install --save-dev gulp-imagemintosudo npm install --save-dev gulp-imagemKylin:zhaofudao jcl$ npm install gulp-imagemin --save-dev npm ERR! Darwin 15.3.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "gulp-imagemin" "--save-dev" npm ERR! node v4.4.3 npm ERR! npm v2.15.1 npm ERR! path /Applications/XAMPP/xamppfiles/htdocs/zhaofudao/node_modules/gulp-imagemin/node_modules/.bin/pretty-bytes npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall unlink npm ERR! Error: EACCES: permission denied, unlink '/Applications/XAMPP/xamppfiles/htdocs/zhaofudao/node_modules/gulp-imagemin/node_modules/.bin/pretty-bytes' npm ERR! at Error (native) npm ERR! { [Error: EACCES: permission denied, unlink '/Applications/XAMPP/xamppfiles/htdocs/zhaofudao/node_modules/gulp-imagemin/node_modules/.bin/pretty-bytes'] npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'unlink', npm ERR! path: '/Applications/XAMPP/xamppfiles/htdocs/zhaofudao/node_modules/gulp-imagemin/node_modules/.bin/pretty-bytes' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! error rolling back Error: EACCES: permission denied, unlink '/Applications/XAMPP/xamppfiles/htdocs/zhaofudao/node_modules/gulp-imagemin/node_modules/.bin/pretty-bytes' npm ERR! error rolling back at Error (native) npm ERR! error rolling back { [Error: EACCES: permission denied, unlink '/Applications/XAMPP/xamppfiles/htdocs/zhaofudao/node_modules/gulp-imagemin/node_modules/.bin/pretty-bytes'] npm ERR! error rolling back errno: -13, npm ERR! error rolling back code: 'EACCES', npm ERR! error rolling back syscall: 'unlink', npm ERR! error rolling back path: '/Applications/XAMPP/xamppfiles/htdocs/zhaofudao/node_modules/gulp-imagemin/node_modules/.bin/pretty-bytes' } npm ERR! Please include the following file with any support request: npm ERR! /Applications/XAMPP/xamppfiles/htdocs/zhaofudao/npm-debug.log Kylin:zhaofudao jcl$ sudo npm install gulp-imagemin --save-dev Password: [email protected] node_modules/gulp-imagemin ├── [email protected] ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected]) ├── [email protected] ([email protected], [email protected], [email protected]) ├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]) └── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])