npm EEXIST error 47 #6309

Closed
Grigs-b opened this Issue Sep 25, 2014 · 39 comments

Projects

None yet
@Grigs-b
Grigs-b commented Sep 25, 2014

Attempting to run npm install during an automated chef deployment is causing a consistent error during deployment, while running the same command interactively in the shell succeeds about 90% of the time, but I have seen the failure interactively. Have attempted the install using both versions 1.4.8 and 2.0.0.

Expected process to exit with [0], but received '47'
---- Begin output of "bash"  "/tmp/chef-script20140925-12906-yv1ywk" ----
STDOUT: /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
npm@2.0.0 /usr/lib/node_modules/npm

> phantomjs@1.9.10 install /code/dashboard-app/
node_modules/grunt-mocha/node_modules/grunt-lib-phantomjs/node_modules/phantomjs
> node install.js

Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
Saving to /code/dashboard-app/node_modules/grun
t-mocha/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/phantomjs/phantomjs-1.9.7-linux-x86_
64.tar.bz2
Receiving...

Received 12852K total.
Extracting tar contents (via spawned process)
Copying extracted folder /code/dashboard-app/no
de_modules/grunt-mocha/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/phantomjs/phantomjs-1
.9.7-linux-x86_64.tar.bz2-extract-1411674335608/phantomjs-1.9.7-linux-x86_64 -> /code/dashboard-app/node_modules/grunt-mocha/node_modules/grunt-lib
-phantomjs/node_modules/phantomjs/lib/phantom
Writing location.js file
Done. Phantomjs binary available at /code/dashboard-app/node_modules/grunt-mocha/node_modules/grunt-lib-phantomjs/node_modules/phantomjs/lib/phanto
m/bin/phantomjs
STDERR: npm WARN package.json dashboard-app@0.0.1 No repository field.
npm WARN optional dep failed, continuing imagemin-pngquant@1.0.2
npm WARN optional dep failed, continuing imagemin-gifsicle@1.0.0
npm WARN optional dep failed, continuing imagemin-optipng@1.0.0
npm WARN optional dep failed, continuing imagemin-jpegtran@1.0.0
npm ERR! Linux 3.13.0-29-generic
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.10.32
npm ERR! npm  v2.0.0
npm ERR! path /tmp/npm-0/.npm/4f4b43d0-m-0-npm-lodash-2-4-1-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno 47

npm ERR! EEXIST, open '/tmp/npm-0/.npm/4f4b43d0-m-0-npm-lodash-2-4-1-package-tgz.lock'
File exists: /tmp/npm-0/.npm/4f4b43d0-m-0-npm-lodash-2-4-1-package-tgz.lock
Move it away, and try again.
@othiym23 othiym23 added the support label Sep 25, 2014
@othiym23
Contributor

This is another case of #6238 and #6248. Everybody encountering it is running large, complicated builds of one kind or another, which leads me to believe that it's yet another undiagnosed race condition. My current attempt to address it is #6294, which I'd hoped to get out to npm@next today, but it looks like I'm not going to have time to make that happen. In any case, watch that ticket for updates. Also, sorry for the inconvenience!

@Grigs-b
Grigs-b commented Sep 25, 2014

Thanks for the quick reply! I'll keep an eye out for updates.

-Ryan Grigsby

@F21
F21 commented Sep 26, 2014

Seeing the same problem here myself on npm 2.0.2:

Binary is fine; exiting
npm WARN optional dep failed, continuing imagemin-optipng@1.0.0
npm WARN optional dep failed, continuing imagemin-jpegtran@1.0.0
npm WARN optional dep failed, continuing imagemin-pngquant@1.0.2

> gifsicle@1.0.3 postinstall /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle
> node lib/install.js

  downloading : https://raw.github.com/imagemin/gifsicle-bin/v1.0.3/vendor/linux/x64/gifsicle
     progress : [====================] 100% 0.0s
โœ” pre-build test passed successfully!
npm ERR! Linux 3.13.0-36-generic
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.10.32
npm ERR! npm  v2.0.2
npm ERR! path /home/user/.npm/bd6fddd6-cis-npm-lodash-2-4-1-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno 47

npm ERR! EEXIST, open '/home/user/.npm/bd6fddd6-cis-npm-lodash-2-4-1-package-tgz.lock'
File exists: /home/user/.npm/bd6fddd6-cis-npm-lodash-2-4-1-package-tgz.lock
Move it away, and try again. 
@F21
F21 commented Sep 26, 2014

Rolling back to npm 1.3.26 fixed it for me. 1.4.2x, initial version before trying 2.0.2 and 2.0.0 also did not work. Did not try any of the 1.4.x.

@othiym23
Contributor

There are many, many other problems with 1.3.x, including the fact that they are not safe to publish with, and in many cases not capable of publishing. I'm close to finishing a fix for this that makes some substantial changes to the locking code that should address this issue. Everybody hold tight.

@othiym23
Contributor

I believe that f24b552, which is included in npm@2.1.0, fixes this problem, but since I don't have a reproducible instance of it, I won't know if it fixes the problem until you install npm@2.1.0 and use it in your build. Please do so, and let me know if it works. Thank you for your patience!

@dcorb
dcorb commented Sep 26, 2014

I have same problem:

npm ERR! Linux 2.6.32-431.el6.x86_64
npm ERR! argv "/home/vagrant/.nvm/v0.11.14/bin/node" "/home/vagrant/.nvm/v0.11.14/bin/npm" "install"
npm ERR! node v0.11.14
npm ERR! npm  v2.0.0
npm ERR! path /home/vagrant/.npm/5ac6bb0f-ant-npm-lodash-2-4-1-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno -17

npm ERR! EEXIST, open '/home/vagrant/.npm/5ac6bb0f-ant-npm-lodash-2-4-1-package-tgz.lock'
File exists: /home/vagrant/.npm/5ac6bb0f-ant-npm-lodash-2-4-1-package-tgz.lock
Move it away, and try again.

Now (After git clone npm, and using "node link", because 2.1.0 is not published still)

e_modules/engine.io-client/node_modules/ws/build'
npm ERR! Linux 2.6.32-431.el6.x86_64
npm ERR! argv "node" "/home/vagrant/.nvm/v0.11.14/bin/npm" "install"
npm ERR! node v0.11.14
npm ERR! npm  v2.1.0
npm ERR! path /home/vagrant/.npm/5cb64052-t-npm-through2-0-6-2-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno -17

npm ERR! EEXIST, open '/home/vagrant/.npm/5cb64052-t-npm-through2-0-6-2-package-tgz.lock'
File exists: /home/vagrant/.npm/5cb64052-t-npm-through2-0-6-2-package-tgz.lock
Move it away, and try again.
@othiym23
Contributor

Thanks for testing this for me; that narrows the problem down to pack and unpack in ./lib/utils/tar.js, which is useful to know (although I still don't know why that EEXIST is happening to some people but not others โ€“ I still haven't figured out how to replicate this on my own machine) but fixing that's going to be a little more work (see #6318 for details). 2.1.1, here I come.

@dcorb

because 2.1.0 is not published still

It's published, it's just not dist-tagged latest: npm -g i npm@2.1.0 will install it. See npm's release process or the recent npm 2 blog post for details.

@F21
F21 commented Sep 26, 2014

Still seeing the same problem unfortunately.

> node-sass@0.9.4 install /home/user/Desktop/webpack-test/src/node_modules/gulp-sass/node_modules/node-sass
> node build.js

`linux-x64-v8-3.14` exists; testing
|
โ€คโ€คโ€ค-\-

  25 passing (705ms)

Binary is fine; exiting
npm ERR! Linux 3.13.0-36-generic
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.10.32
npm ERR! npm  v2.1.0
npm ERR! path /home/user/.npm/4c25afa1-ncis-npm-vinyl-0-4-3-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno 47

npm ERR! EEXIST, open '/home/user/.npm/4c25afa1-ncis-npm-vinyl-0-4-3-package-tgz.lock'
File exists: /home/user/.npm/4c25afa1-ncis-npm-vinyl-0-4-3-package-tgz.lock
Move it away, and try again. 

npm ERR! Please include the following file with any support request:
npm ERR!     /home/user/Desktop/webpack-test/src/npm-debug.log

npm-debug.log:

126030 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/.bin/optipng is not under /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin
126031 silly gentlyRm checking to see if /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/.bin/optipng is a link
126032 info postuninstall optipng-bin@1.0.1
126033 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin
126034 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin
126035 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules
126036 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng unbuild
126037 info preuninstall imagemin-optipng@1.0.0
126038 info uninstall imagemin-optipng@1.0.0
126039 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules unbuild imagemin-optipng@1.0.0
126040 info postuninstall imagemin-optipng@1.0.0
126041 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng
126042 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng
126043 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules
126044 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download unbuild
126045 info preuninstall download@3.0.1
126046 info uninstall download@3.0.1
126047 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules unbuild download@3.0.1
126048 verbose /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/.bin,[object Object] binRoot
126049 verbose gentlyRm verifying that /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download is managed by npm
126050 silly isManaged /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download is inside /home/user/Desktop/webpack-test/src/node_modules
126051 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download is managed by npm
126052 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/.bin/download is not under /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download
126053 silly gentlyRm checking to see if /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/.bin/download is a link
126054 info postuninstall download@3.0.1
126055 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download
126056 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules/download
126057 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper/node_modules
126058 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper unbuild
126059 info preuninstall bin-wrapper@1.0.4
126060 info uninstall bin-wrapper@1.0.4
126061 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules unbuild bin-wrapper@1.0.4
126062 info postuninstall bin-wrapper@1.0.4
126063 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper
126064 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-wrapper
126065 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules
126066 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules/decompress-tarbz2 unbuild
126067 info preuninstall decompress-tarbz2@2.0.2
126068 info uninstall decompress-tarbz2@2.0.2
126069 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules unbuild decompress-tarbz2@2.0.2
126070 info postuninstall decompress-tarbz2@2.0.2
126071 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules/decompress-tarbz2
126072 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules/decompress-tarbz2
126073 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download/node_modules
126074 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download unbuild
126075 info preuninstall download@3.0.1
126076 info uninstall download@3.0.1
126077 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules unbuild download@3.0.1
126078 verbose /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/.bin,[object Object] binRoot
126079 verbose gentlyRm verifying that /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download is managed by npm
126080 silly isManaged /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download is inside /home/user/Desktop/webpack-test/src/node_modules
126081 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download is managed by npm
126082 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/.bin/download is not under /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download
126083 silly gentlyRm checking to see if /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/.bin/download is a link
126084 info postuninstall download@3.0.1
126085 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download
126086 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules/download
126087 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper/node_modules
126088 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper unbuild
126089 info preuninstall bin-wrapper@1.0.4
126090 info uninstall bin-wrapper@1.0.4
126091 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules unbuild bin-wrapper@1.0.4
126092 info postuninstall bin-wrapper@1.0.4
126093 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper
126094 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules/bin-wrapper
126095 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle/node_modules
126096 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle unbuild
126097 info preuninstall gifsicle@1.0.3
126098 info uninstall gifsicle@1.0.3
126099 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules unbuild gifsicle@1.0.3
126100 verbose /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/.bin,[object Object] binRoot
126101 verbose gentlyRm verifying that /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle is managed by npm
126102 silly isManaged /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle is inside /home/user/Desktop/webpack-test/src/node_modules
126103 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle is managed by npm
126104 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/.bin/gifsicle is not under /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle
126105 silly gentlyRm checking to see if /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/.bin/gifsicle is a link
126106 info postuninstall gifsicle@1.0.3
126107 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle
126108 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules/gifsicle
126109 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle/node_modules
126110 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle unbuild
126111 info preuninstall imagemin-gifsicle@1.0.0
126112 info uninstall imagemin-gifsicle@1.0.0
126113 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules unbuild imagemin-gifsicle@1.0.0
126114 info postuninstall imagemin-gifsicle@1.0.0
126115 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle
126116 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-gifsicle
126117 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules
126118 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/decompress unbuild
126119 info preuninstall decompress@1.0.7
126120 info uninstall decompress@1.0.7
126121 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules unbuild decompress@1.0.7
126122 verbose /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/.bin,[object Object] binRoot
126123 verbose gentlyRm verifying that /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/decompress is managed by npm
126124 silly isManaged /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/decompress is inside /home/user/Desktop/webpack-test/src/node_modules
126125 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/decompress is managed by npm
126126 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/.bin/decompress is not under /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/decompress
126127 silly gentlyRm checking to see if /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/.bin/decompress is a link
126128 info postuninstall decompress@1.0.7
126129 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/decompress
126130 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules/decompress
126131 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download/node_modules
126132 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download unbuild
126133 info preuninstall download@1.0.7
126134 info uninstall download@1.0.7
126135 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules unbuild download@1.0.7
126136 info postuninstall download@1.0.7
126137 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download
126138 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules/download
126139 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build/node_modules
126140 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build unbuild
126141 info preuninstall bin-build@1.0.1
126142 info uninstall bin-build@1.0.1
126143 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules unbuild bin-build@1.0.1
126144 info postuninstall bin-build@1.0.1
126145 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build
126146 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules/bin-build
126147 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin/node_modules
126148 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin unbuild
126149 info preuninstall jpegtran-bin@1.0.2
126150 info uninstall jpegtran-bin@1.0.2
126151 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules unbuild jpegtran-bin@1.0.2
126152 verbose /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/.bin,[object Object] binRoot
126153 verbose gentlyRm verifying that /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin is managed by npm
126154 silly isManaged /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin is inside /home/user/Desktop/webpack-test/src/node_modules
126155 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin is managed by npm
126156 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/.bin/jpegtran is not under /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin
126157 silly gentlyRm checking to see if /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/.bin/jpegtran is a link
126158 info postuninstall jpegtran-bin@1.0.2
126159 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin
126160 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules/jpegtran-bin
126161 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran/node_modules
126162 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran unbuild
126163 info preuninstall imagemin-jpegtran@1.0.0
126164 info uninstall imagemin-jpegtran@1.0.0
126165 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules unbuild imagemin-jpegtran@1.0.0
126166 info postuninstall imagemin-jpegtran@1.0.0
126167 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran
126168 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-jpegtran
126169 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules
126170 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/decompress unbuild
126171 info preuninstall decompress@1.0.7
126172 info uninstall decompress@1.0.7
126173 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules unbuild decompress@1.0.7
126174 verbose /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/.bin,[object Object] binRoot
126175 verbose gentlyRm verifying that /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/decompress is managed by npm
126176 silly isManaged /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/decompress is inside /home/user/Desktop/webpack-test/src/node_modules
126177 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/decompress is managed by npm
126178 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/.bin/decompress is not under /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/decompress
126179 silly gentlyRm checking to see if /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/.bin/decompress is a link
126180 info postuninstall decompress@1.0.7
126181 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/decompress
126182 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/decompress
126183 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules
126184 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download unbuild
126185 info preuninstall download@1.0.7
126186 info uninstall download@1.0.7
126187 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules unbuild download@1.0.7
126188 info postuninstall download@1.0.7
126189 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download
126190 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download
126191 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules
126192 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build unbuild
126193 info preuninstall bin-build@1.0.1
126194 info uninstall bin-build@1.0.1
126195 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules unbuild bin-build@1.0.1
126196 info postuninstall bin-build@1.0.1
126197 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build
126198 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build
126199 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules
126200 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin unbuild
126201 info preuninstall pngquant-bin@1.0.1
126202 info uninstall pngquant-bin@1.0.1
126203 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules unbuild pngquant-bin@1.0.1
126204 verbose /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/.bin,[object Object] binRoot
126205 verbose gentlyRm verifying that /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin is managed by npm
126206 silly isManaged /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin is inside /home/user/Desktop/webpack-test/src/node_modules
126207 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin is managed by npm
126208 silly gentlyRm /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/.bin/pngquant is not under /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin
126209 silly gentlyRm checking to see if /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/.bin/pngquant is a link
126210 info postuninstall pngquant-bin@1.0.1
126211 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin
126212 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin
126213 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules
126214 verbose node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant unbuild
126215 info preuninstall imagemin-pngquant@1.0.2
126216 info uninstall imagemin-pngquant@1.0.2
126217 verbose false,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules unbuild imagemin-pngquant@1.0.2
126218 info postuninstall imagemin-pngquant@1.0.2
126219 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant
126220 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant
126221 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules/gulp-imagemin/node_modules/imagemin/node_modules
126222 verbose node_modules/gulp-autoprefixer unbuild
126223 info preuninstall gulp-autoprefixer@1.0.1
126224 info uninstall gulp-autoprefixer@1.0.1
126225 verbose true,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules unbuild gulp-autoprefixer@1.0.1
126226 info postuninstall gulp-autoprefixer@1.0.1
126227 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-autoprefixer
126228 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-autoprefixer
126229 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules
126230 verbose node_modules/gulp-sass unbuild
126231 info preuninstall gulp-sass@1.0.0
126232 info uninstall gulp-sass@1.0.0
126233 verbose true,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules unbuild gulp-sass@1.0.0
126234 info postuninstall gulp-sass@1.0.0
126235 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-sass
126236 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-sass
126237 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules
126238 verbose node_modules/gulp.spritesmith unbuild
126239 info preuninstall gulp.spritesmith@1.3.0
126240 info uninstall gulp.spritesmith@1.3.0
126241 verbose true,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules unbuild gulp.spritesmith@1.3.0
126242 info postuninstall gulp.spritesmith@1.3.0
126243 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp.spritesmith
126244 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp.spritesmith
126245 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules
126246 verbose node_modules/gulp-webpack unbuild
126247 info preuninstall gulp-webpack@0.3.0
126248 info uninstall gulp-webpack@0.3.0
126249 verbose true,/home/user/Desktop/webpack-test/src/node_modules,/home/user/Desktop/webpack-test/src/node_modules unbuild gulp-webpack@0.3.0
126250 info postuninstall gulp-webpack@0.3.0
126251 verbose gentlyRm vacuuming /home/user/Desktop/webpack-test/src/node_modules/gulp-webpack
126252 silly gentlyRm purging /home/user/Desktop/webpack-test/src/node_modules/gulp-webpack
126253 silly gentlyRm quitting because other entries in /home/user/Desktop/webpack-test/src/node_modules
@othiym23
Contributor

Thanks, @F21. You're the second person to confirm that this isn't fixed yet. See #6318 for what I now believe needs to be done. The good news is that doing this trades a tiny amount of extra work being done (because multiple processes can be putting the same tarball in the cache at the same time) for a lot less locking within npm, which should make it both more robust and (in some cases) slightly faster.

@F21
F21 commented Sep 26, 2014

@othiym23 Thought I would post more info on my setup (maybe it can help you reproduce the issue).

OS: Ubuntu 14.04 64-bit VMWare Workstation VM running on a Windows 8.1 64-bit host.
Node: 0.10.32
npm: 2.1.0
package.json:

{
  "name": "mypackage",
  "version": "0.0.1",
  "devDependencies": {
    "gulp" : "~3.8.8",
    "gulp-sass" : "~1.0.0",
    "gulp-autoprefixer" : "~1.0.1",
    "gulp-load-plugins" : "~0.6.0",
    "gulp-imagemin" : "~1.0.1",
    "gulp.spritesmith" : "~1.3.0",
    "gulp-webpack" : "~0.3.0",
    "gulp-cache" : "~0.2.2",
    "gulp-notify" : "~1.8.0",
    "gulp-tap" : "~0.1.1",
    "gulp-watch": "~1.0.7",
    "gulp-plumber" : "0.6.5",
    "del" : "~0.1.3"
  }
}
@nickdenardis

I'm also encountering the same problem on npm@2.0.2 and after updating to npm@2.1.0.

$ npm install
npm WARN optional dep failed, continuing imagemin-pngquant@1.0.2
npm WARN optional dep failed, continuing imagemin-optipng@1.0.0
npm WARN optional dep failed, continuing imagemin-jpegtran@1.0.0
npm WARN optional dep failed, continuing imagemin-gifsicle@1.0.0
npm ERR! Linux 3.2.0-23-generic
npm ERR! argv "node" "/home/vagrant/.nvm/v0.10.32/bin/npm" "install" "--save-dev"
npm ERR! node v0.10.32
npm ERR! npm  v2.1.0
npm ERR! path /home/vagrant/.npm/5ac6bb0f-ant-npm-lodash-2-4-1-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno 47

npm ERR! EEXIST, open '/home/vagrant/.npm/5ac6bb0f-ant-npm-lodash-2-4-1-package-tgz.lock'
File exists: /home/vagrant/.npm/5ac6bb0f-ant-npm-lodash-2-4-1-package-tgz.lock
Move it away, and try again.

Removing 'gulp-imagemin' from my package.json allowed all other packages to install without error.

Trying to install just 'gulp-imagemin' succeeds with WARNs for optional dependencies (basically renders it useless)

$ npm install gulp-imagemin
npm WARN optional dep failed, continuing imagemin-optipng@1.0.0
npm WARN optional dep failed, continuing imagemin-gifsicle@1.0.0
npm WARN optional dep failed, continuing imagemin-pngquant@1.0.2
npm WARN optional dep failed, continuing imagemin-jpegtran@1.0.0
gulp-imagemin@1.0.1 node_modules/gulp-imagemin
โ”œโ”€โ”€ object-assign@1.0.0
โ”œโ”€โ”€ pretty-bytes@1.0.1 (get-stdin@1.0.0)
โ”œโ”€โ”€ chalk@0.5.1 (ansi-styles@1.1.0, escape-string-regexp@1.0.2, supports-color@0.2.0, has-ansi@0.1.0, strip-ansi@0.3.0)
โ”œโ”€โ”€ through2@0.6.2 (xtend@4.0.0, readable-stream@1.0.32)
โ””โ”€โ”€ imagemin@1.0.5 (get-stdin@3.0.0, stat-mode@0.2.0, ware@0.3.0, nopt@3.0.1, tempfile@1.0.0, fs-extra@0.11.1, imagemin-svgo@1.0.2)

Erroring package.json:

{
  "name": "mypackage",
  "version": "0.0.1",
  "devDependencies": {
    "bower": "~1.3.11",
    "gulp": "~3.8.8",
    "gulp-autoprefixer": "~1.0.1",
    "gulp-compass": "~1.3.1",
    "gulp-concat": "~2.4.1",
    "gulp-imagemin": "~1.0.1",
    "gulp-jshint": "~1.8.4",
    "gulp-livereload": "~2.1.1",
    "gulp-load-plugins": "~0.6.0",
    "gulp-minify-css": "~0.3.10",
    "gulp-plumber": "~0.6.5",
    "gulp-rename": "~1.2.0",
    "gulp-ruby-sass": "~0.7.1",
    "gulp-size": "~1.1.0",
    "gulp-sym": "~0.0.14",
    "gulp-uglify": "~1.0.1",
    "gulp-util": "~3.0.1",
    "tiny-lr": "~0.1.4"
  }
}

Environment:

$ lsb_release -a
Description:    Ubuntu 12.04 LTS
$ node -v
v0.10.32
$ npm -v
2.1.0
@Grigs-b
Grigs-b commented Sep 26, 2014

Interestingly, changing the way that chef installs produces different results. Using grunt_cookbook or the bash cookbook fail pretty consistently, whereas running execute "npm install" do succeeds pretty consistently on my system.

I've run the install using npm@2.1.0 and still see the issue in the cases mentioned above. here are my npm-debug logs if you'd like to take a look.

The system I'm using is an AWS EC2 64-bit Ubuntu 14.04 ami.

@othiym23 othiym23 added bug and removed support labels Sep 27, 2014
@othiym23 othiym23 added this to the 2.1.1 milestone Sep 27, 2014
@othiym23
Contributor

Good news! See #6318 for details, but I now believe (with more confidence this time than last) that this issue has been addressed for real. npm -g install npm@2.1.1 or npm -g install npm@next will get you the fixed version of npm. If you run into additional problems, please open new issues, as the code that caused this issue is no longer in npm.

@othiym23 othiym23 closed this Sep 27, 2014
@F21
F21 commented Sep 27, 2014

@othiym23 I can confirm that everything works perfectly with 2.1.1. Thanks for pushing out a fix! ๐Ÿ˜„

@nickdenardis

@othiym23 All lights are green here too with 2.1.1 ๐Ÿ‘ ๐Ÿ˜„ Thanks!

@shankarnakai

Just perfect with 2.1.1
Very Thanks @othiym23, really good job.

@masakura masakura referenced this issue in GrayBullet/generator-graybullet-cordova Nov 10, 2014
Closed

Throw error, npm ERR! EEXIST, open file #11

@zoomclub

I had this problem, seemingly out of the blue today and found my way here. I tried to install with the recommended npm -g install npm@2.1.1 or npm -g install npm@next but just ended up clobbering my npm command. So I just ran the node installer again to get back to npm 1.4.28. How should the install be done?

Just now I tried installing from my package.json again in webstorm and it now works without all the lock problems I had this afternoon. No idea why still? However, what I do notice back in my main user .npm directory is a lot more locked files than before. Below is just a slice of my directory listing. What is going on and how can I apply the real solution?

>> ~/.npm> ls
-                                              install
01bfee42-ules-through2-node-modules-xtend.lock interpret
03e394fd-les-gulp-util-node-modules-vinyl.lock intersect
0861a11c-has-ansi-node-modules-ansi-regex.lock is-7zip
0d6369ca--node-modules-lodash-objecttypes.lock is-absolute
107decd9-les-gulp-util-node-modules-vinyl.lock is-array
1506d28b-gh2-node-modules-readable-stream.lock is-bzip2
16db85f7-rip-ansi-node-modules-ansi-regex.lock is-finite
17a57161--gulp-util-node-modules-minimist.lock is-gif
17a8e8cd-eys-node-modules-lodash-isnative.lock is-gzip
1a50bd00-edia-npm-vinyl-0-2-3-package-tgz.lock is-integer
1e790964-fs-extra-0-10-0.lock                  is-jpg
20e874ab-gh2-node-modules-readable-stream.lock is-npm
25bba58c-de-modules-lodash-escapehtmlchar.lock is-path-global
2c805fe6-ulp-util-node-modules-dateformat.lock is-path-inside
2e14e014-edia-npm-glob-3-2-11-package-tgz.lock is-png
2f2890fe-les-gulp-util-node-modules-chalk.lock is-rar
344ac813--findup-sync-node-modules-lodash.lock is-relative
354f7b3b--node-modules-lodash-objecttypes.lock is-root
363d85e6--modules-lodash-escapestringchar.lock is-svg
38cc6510-les-vinyl-fs-node-modules-lodash.lock is-tar
3ac476e4-caniuse-db-1-0-20140727.lock          is-utf8
3e35f3f9-til-node-modules-lodash-template.lock is-zip
48e4ef0a-ode-modules-lodash-reinterpolate.lock isarray
4d407807-stream-node-modules-core-util-is.lock isbinaryfile
4e41a605-postcss-2-1-0.lock                    jade
4eb498d7-lp-jest-node-modules-react-tools.lock jasmine-only
4fa5a1da-gulp-util-node-modules-multipipe.lock jasmine-pit
505c2d45-m-react-tools-0-11-2-package-tgz.lock jest-cli
54452f02-ams-node-modules-readable-stream.lock jpegtran-bin
5e07053a-s-glob-watcher-node-modules-gaze.lock js-base64
600a558c-ules-gulp-node-modules-gulp-util.lock js-yaml
62fdae02-er2-node-modules-readable-stream.lock jsdom
746928be-es-findup-sync-node-modules-glob.lock jsesc
7491802c-ble-stream-node-modules-inherits.lock jshint
79fb3f61-les-liftoff-node-modules-resolve.lock json-stringify-safe
7e4cb8bf--npm-uglify-js-2-4-6-package-tgz.lock json5
81933c14-gh2-node-modules-readable-stream.lock jsonfile
864c9641-lp-uglify-node-modules-gulp-util.lock jsonify
895af87b-plate-node-modules-lodash-values.lock jstransform
8b0099ad-gh2-node-modules-readable-stream.lock junk
8d7b3957-lp-uglify-node-modules-uglify-js.lock latest-version
94623437-es-gulp-util-node-modules-lodash.lock liftoff
979e2038-ules-vinyl-fs-node-modules-vinyl.lock lnfs
99f9c621-les-vinyl-fs-node-modules-mkdirp.lock loader-utils
9dd23a5b-multipipe-node-modules-duplexer2.lock localtunnel
Base64                                         lockfile
CSSselect                                      lodash
CSSwhat                                        lodash._escapehtmlchar
a205f8a7--gulp-util-node-modules-through2.lock lodash._escapestringchar
abbrev                                         lodash._htmlescapes
adm-zip                                        lodash._isnative
ae3dfc35--node-modules-lodash-htmlescapes.lock lodash._objecttypes
amdefine                                       lodash._reinterpolate
ansi-regex                                     lodash._reunescapedhtml
ansi-styles                                    lodash._shimkeys
ansidiff                                       lodash.debounce
archive-type                                   lodash.defaults
archy                                          lodash.escape
argparse                                       lodash.isfunction
array-differ                                   lodash.isobject
array-filter                                   lodash.keys
array-map                                      lodash.now
array-reduce                                   lodash.template
array-union                                    lodash.templatesettings
array-uniq                                     lodash.values
asn1                                           log-symbols
assert                                         logmagic
assert-plus                                    longest
ast-query                                      lpad
ast-types                                      lpad-align
astquery                                       lru-cache
async                                          lru-queue
async-each                                     magic-templates
async-each-series                              map-obj
autoprefixer                                   map-stream
aws-sign                                       mem-fs
aws-sign2                                      memoizee
b0eb805e-e-modules-lodash-reunescapedhtml.lock memory-cache
base62                                         memory-fs
base64-js                                      meow
basic-auth-connect                             method-override
batch                                          methods
bdac8135-clean-css-node-modules-commander.lock mime
big.js                                         mime-types
bin-build                                      minimatch
bin-check                                      minimist

MORE OF SAME...

@cerealBoxx

If someone on Windows has the same issue and wonders why the npm version doesn't update, they have to go to the nodejs installation folder and delete/rename the npm and npm.cmd files from the folder.

@area
area commented Nov 24, 2014

Just to say I had this issue on 1.4.x and upgrading npm to 2.1.9 solved it.

@rafinskipg

2.1.11 works good, thank you Node js comunity

@safinalexey

have the same problem and tried to update npm by npm install -g npm@next and here what i've got
C:\Users\Alex>npm install -g npm@next
C:\Users\Alex\AppData\Roaming\npm\npm -> C:\Users\Alex\AppData\Roaming\npm\node_
modules\npm\bin\npm-cli.js
npm@2.1.14 C:\Users\Alex\AppData\Roaming\npm\node_modules\npm

C:\Users\Alex>npm -v
1.4.28

why npm version is still old?

@sethlivingston

From http://stackoverflow.com/questions/10927490/how-can-install-a-new-version-of-npm-1-1-24:

On Windows npm is installed together with node in "Program Files". Use npm install npm -g to install it in "%AppData%\npm" and delete 'npm', 'npm.cmd' files from "C:\Program Files\nodejs" dir (because your PATH is looking there first). After that you can use npm update npm -g in the future.

@sebastianromero

Thanks! I updated from 1.4.x to 2.1.14 and everything works fine.

@suenot suenot added a commit to suenot/vagrant-nvm that referenced this issue Jan 17, 2015
@suenot suenot fix npm npm/npm#6309, fix installing packages from sudo, fix enabled โ€ฆ
โ€ฆnvm without a logout/login (fix for me)
2f79aca
@faviouz
faviouz commented Jan 23, 2015

Thanks! ๐Ÿ‘

npm -g install npm@next fixed it for me.

@derekbasch

npm -g install npm@next also fixed it for me on Windows.

@Krinkle
Krinkle commented Feb 3, 2015

Using Node v0.10 and npm 2.4.1, still getting this quite often in https://github.com/wikimedia/oojs-ui. Thus making npm-test very hard to use in continuous integration. I suspect it might be a race condition as it seems to work fine when run in isolation.

01:58:37 npm ERR! EEXIST, symlink '../esprima/bin/esparse.js'
01:58:37 File exists: ../esprima/bin/esparse.js
01:58:37 Move it away, and try again. 
@HansHammel

still an issue on debian 7.8 (todays fresh install, only ssh, git, npm, base system tools and build essentials installed), npm 1.4.28, node 0.10.36 . I am gettlig EEXIST's on random lock files on each (`npm update' ) retry (as user and root). The queen is not amused ;-)

@othiym23
Contributor

@HansHammel npm@1.4.28 is too old to have these fixes. You should probably switch to a non-Debian packaged version of node and then upgrade to a newer npm.

@paulstatezny

Getting this on Node v0.10.32 and NPM v1.4.28 using Shippable. Thanks for your help!

@wiseguy12851

Was only having this problem on Windows and spent a good while trying to track down what the issue was. This fixed it, I installed the latest npm release as of now which was 2.6.0 and retried "npm install". It worked

@Krinkle
Krinkle commented Mar 6, 2015

For the record, the bin conflict part of this issue is still happening with recent versions like npm v2.4.1. Refer to #7130 (comment) for that.

@ttaylorr
ttaylorr commented Apr 5, 2015

npm@next works perfectly, thank you!

@hypery2k hypery2k added a commit to hypery2k/cordova-demo-app that referenced this issue Apr 28, 2015
@hypery2k hypery2k fix NPM win error 9d1b167
@papazov3d

npm -g install npm@2.1.1 doesn't install any new version. How can I really install this?

@KenanY
Member
KenanY commented Apr 29, 2015

@papazov3d Are you asking how to upgrade to the latest stable release? We have a guide if so.

@papazov3d

Just wanted to install 2.1.1 because of other issues. Did it according to option 3 in the guide. Thanks.

@manthey manthey added a commit to girder/girder that referenced this issue May 7, 2015
@manthey manthey Upgrade npm to the latest version.
Occasionally npm install would fail with an EEXIST error message.  This was caused by a race condition in npm (see npm/npm#6309).  Upgrading to the latest npm version avoids this problem.

I've occasionally seen this failure in a travis build, but it is fairly rare.
65b5d34
@manthey manthey referenced this issue in girder/girder May 7, 2015
Merged

Upgrade npm to the latest version. #824

@CloudNiner CloudNiner added a commit to WorldBank-Transport/DRIVER that referenced this issue May 7, 2015
@CloudNiner CloudNiner Use npm2.1.1+ to fix npm install race conditions c6c5642
@danielhickman danielhickman referenced this issue in PolymerElements/polymer-starter-kit Jun 1, 2015
Closed

Error Installing Deps Linux #76

@evolchek evolchek added a commit to evolchek/docker-teamcity-agent-klika that referenced this issue Jul 17, 2015
@evolchek evolchek npm switched to "next" branch due to npm/npm#6309 6232097
@evolchek evolchek added a commit to Klika-Tech/docker-jenkins that referenced this issue Jul 17, 2015
@evolchek evolchek npm switched to "next" branch due to 5c393f0
@davidemoro davidemoro pushed a commit to substancek/substancek_cms_theme that referenced this issue Aug 14, 2015
Davide Moro fix failed build on travis. See npm/npm#6309 9c64171
@sojharo
sojharo commented Sep 23, 2015

I am still having this issue on shippable build. I tried with nodejs 0.11 and 4.1.1 too

make: Leaving directory `/root/workspace/src/github.com/Cloudkibo/CloudKibo/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build'
npm ERR! EEXIST, open '/root/.npm/4f6c6d7c-ot-npm-esprima-1-0-4-package-tgz.lock'
File exists: /root/.npm/4f6c6d7c-ot-npm-esprima-1-0-4-package-tgz.lock
Move it away, and try again.

npm ERR! System Linux 3.13.0-57-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /root/workspace/src/github.com/Cloudkibo/CloudKibo
npm ERR! node -v v0.10.37
npm ERR! npm -v 1.4.28
npm ERR! path /root/.npm/4f6c6d7c-ot-npm-esprima-1-0-4-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! not ok code 0

@prcongithub

npm ERR! Linux 2.6.32-573.12.1.el6.x86_64
** [out :: assessment] npm ERR! argv "/usr/local/lib/node/bin/node" "/usr/local/bin/npm" "install"
** [out :: assessment] npm ERR! node v5.4.1
** [out :: assessment] npm ERR! npm v3.3.12
** [out :: assessment] npm ERR! path /data/assessment/releases/20160120035920/node_modules
** [out :: assessment] npm ERR! code EEXIST
** [out :: assessment] npm
** [out :: assessment] ERR! errno -17
** [out :: assessment] npm ERR! syscall mkdir
** [out :: assessment]
** [out :: assessment] npm ERR! EEXIST: file already exists, mkdir '/data/assessment/releases/20160120035920/node_modules'
** [out :: assessment] File exists: /data/assessment/releases/20160120035920/node_modules
** [out :: assessment] Move it away, and try again.

@ngzhian ngzhian referenced this issue in nusmodifications/nusmods Feb 2, 2016
Merged

Update npm to 3.6.0 before running npm install #251

@prcongithub

node: 5.4.1
npm: 3.7.2
My package.json

"dependencies": {
    "express": "4.13.3",
    "serve-favicon": "2.3.0",
    "morgan": "1.6.1",
    "body-parser": "1.13.3",
    "express-session": "1.11.3",
    "method-override": "2.3.5",
    "cookie-parser": "1.3.5",
    "errorhandler": "1.4.2",
    "ejs": "0.8.4",
    "moment": "2.3.1",
    "underscore": "1.5.2",
    "qs": "0.6.5",
    "nodemailer": "0.5.5",
    "i18n": "0.4.1",
    "async": "0.9.0",
    "csso": "1.3.11",
    "uglify-js": "2.4.24",
    "node-vger": "git+ssh://git@bitbucket.org/jombay/node-vger.git#26a3c378c6478ee6f97b83a5deddd31076fbc521",
    "connect-assets": "5.0.1"
  }

Error

 ** [out :: internal.ur-nl.com] npm ERR! Linux 2.6.32-573.12.1.el6.x86_64
 ** [out :: internal.ur-nl.com] 
 ** [out :: internal.ur-nl.com] npm
 ** [out :: internal.ur-nl.com] 
 ** [out :: internal.ur-nl.com] ERR!
 ** [out :: internal.ur-nl.com] argv "/usr/local/lib/node/bin/node" "/usr/local/bin/npm" "install"
 ** [out :: internal.ur-nl.com] npm ERR! node v5.4.1
 ** [out :: internal.ur-nl.com] npm ERR! npm  v3.7.2
 ** [out :: internal.ur-nl.com] npm ERR! path /data/assessment.jombay.com/releases/20160213163036/node_modules
 ** [out :: internal.ur-nl.com] 
 ** [out :: internal.ur-nl.com] npm ERR! code EEXIST
 ** [out :: internal.ur-nl.com] npm ERR! errno -17
 ** [out :: internal.ur-nl.com] npm ERR! syscall mkdir
 ** [out :: internal.ur-nl.com] 
 ** [out :: internal.ur-nl.com] npm ERR! EEXIST: file already exists, mkdir 
 ** [out :: internal.ur-nl.com] npm ERR! Move it away, and try again.
@jadjoubran jadjoubran referenced this issue in jadjoubran/laravel5-angular-material-starter Apr 4, 2016
Closed

Fix failing tests #232

@johnmccawley johnmccawley added a commit to thedigitalgarage/sti-nodejs that referenced this issue Apr 24, 2016
@johnmccawley johnmccawley Fix for NPM issue #6309
Fix for npm/npm#6309
7ec999b
@mike182uk mike182uk referenced this issue in TryGhost/Ghost-Vagrant May 30, 2016
Closed

npm install fails #92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment