Errors when installing gulp-imagemin
<p>When I try to install gulp-imagemin in bash using the command <code>npm install gulp-imagemin --save-dev</code> 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.</p>

<pre><code>Dimitris (master) performance-optimization $ npm install --save-dev gulp-imagem
in
-
&gt; gifsicle@3.0.3 postinstall c:\Users\Dimitris\documents\nanodegree\performance-
optimization\node_modules\gulp-imagemin\node_modules\imagemin\node_modules\image
min-gifsicle\node_modules\gifsicle
&gt; 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.&lt;anonymous&gt; (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)

&gt; optipng-bin@3.0.4 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
&gt; 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.&lt;anonymous&gt; (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 imagemin-gifsicle@4.2.0

&gt; jpegtran-bin@3.0.6 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
&gt; 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.&lt;anonymous&gt; (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 imagemin-optipng@4.3.0
npm WARN optional dep failed, continuing imagemin-jpegtran@4.3.2
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" "$@"
</code></pre>