Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm EEXIST error 47 #6309

Closed
Grigs-b opened this issue Sep 25, 2014 · 42 comments
Closed

npm EEXIST error 47 #6309

Grigs-b opened this issue Sep 25, 2014 · 42 comments
Labels
Milestone

Comments

@Grigs-b
Copy link

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
Copy link
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
Copy link
Author

Grigs-b commented Sep 25, 2014

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

-Ryan Grigsby

@F21
Copy link

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
Copy link

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
Copy link
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
Copy link
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
Copy link

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
Copy link
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
Copy link

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
Copy link
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
Copy link

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
Copy link

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
Copy link
Author

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
Copy link
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.

@F21
Copy link

F21 commented Sep 27, 2014

@othiym23 I can confirm that everything works perfectly with 2.1.1. Thanks for pushing out a fix! 😄

@nickdenardis
Copy link

@othiym23 All lights are green here too with 2.1.1 👍 😄 Thanks!

@shankarnakai
Copy link

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

@zoomclub
Copy link

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...

@junebug12851
Copy link

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
Copy link

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
Copy link

ttaylorr commented Apr 5, 2015

npm@next works perfectly, thank you!

@papazov3d
Copy link

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

@kenany
Copy link
Contributor

kenany commented Apr 29, 2015

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

@papazov3d
Copy link

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

manthey added a commit to girder/girder that referenced this issue May 7, 2015
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.
CloudNiner added a commit to WorldBank-Transport/DRIVER that referenced this issue May 7, 2015
evolchek pushed a commit to evolchek/docker-teamcity-agent-klika that referenced this issue Jul 17, 2015
davidemoro pushed a commit to substancek/substancek_cms_theme that referenced this issue Aug 14, 2015
@sojharo
Copy link

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
Copy link

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.

@prcongithub
Copy link

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.

@dmitry-saritasa
Copy link

can't update npm to 5.5

(crm) ➜  backend git:(develop) ✗ sudo dnf install node npm
Last metadata expiration check: 0:26:55 ago on Fri 13 Oct 2017 12:05:29 PM PDT.
Dependencies resolved.
=======================================================================================================================
 Package                Arch                  Version                                     Repository              Size
=======================================================================================================================
Installing:
 node                   x86_64                0.3.2-20.fc26                               fedora                  67 k
 npm                    x86_64                1:3.10.10-1.6.11.3.1.fc26                   updates                2.5 M
Installing dependencies:
 libax25                x86_64                1.0.5-3.fc26                                fedora                  43 k
 xinetd                 x86_64                2:2.3.15-18.fc26                            fedora                 130 k

Transaction Summary
=======================================================================================================================
Install  4 Packages

Total download size: 2.8 M
Installed size: 10 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): libax25-1.0.5-3.fc26.x86_64.rpm                                                 109 kB/s |  43 kB     00:00    
(2/4): node-0.3.2-20.fc26.x86_64.rpm                                                   167 kB/s |  67 kB     00:00    
(3/4): xinetd-2.3.15-18.fc26.x86_64.rpm                                                250 kB/s | 130 kB     00:00    
(4/4): npm-3.10.10-1.6.11.3.1.fc26.x86_64.rpm                                          1.1 MB/s | 2.5 MB     00:02    
-----------------------------------------------------------------------------------------------------------------------
Total                                                                                  742 kB/s | 2.8 MB     00:03     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                               1/1 
  Installing       : xinetd-2:2.3.15-18.fc26.x86_64                                                                1/4 
  Running scriptlet: xinetd-2:2.3.15-18.fc26.x86_64                                                                1/4 
  Installing       : libax25-1.0.5-3.fc26.x86_64                                                                   2/4 
  Running scriptlet: libax25-1.0.5-3.fc26.x86_64                                                                   2/4 
  Installing       : node-0.3.2-20.fc26.x86_64                                                                     3/4 
  Running scriptlet: node-0.3.2-20.fc26.x86_64                                                                     3/4 
  Installing       : npm-1:3.10.10-1.6.11.3.1.fc26.x86_64                                                          4/4 
  Running scriptlet: npm-1:3.10.10-1.6.11.3.1.fc26.x86_64                                                          4/4 
  Verifying        : node-0.3.2-20.fc26.x86_64                                                                     1/4 
  Verifying        : libax25-1.0.5-3.fc26.x86_64                                                                   2/4 
  Verifying        : xinetd-2:2.3.15-18.fc26.x86_64                                                                3/4 
  Verifying        : npm-1:3.10.10-1.6.11.3.1.fc26.x86_64                                                          4/4 

Installed:
  node.x86_64 0.3.2-20.fc26             npm.x86_64 1:3.10.10-1.6.11.3.1.fc26        libax25.x86_64 1.0.5-3.fc26       
  xinetd.x86_64 2:2.3.15-18.fc26       

Complete!
(crm) ➜  backend git:(develop) ✗ npm

Usage: npm <command>

where <command> is one of:
    access, adduser, bin, bugs, c, cache, completion, config,
    ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get,
    help, help-search, i, init, install, install-test, it, link,
    list, ln, login, logout, ls, outdated, owner, pack, ping,
    prefix, prune, publish, rb, rebuild, repo, restart, root,
    run, run-script, s, se, search, set, shrinkwrap, star,
    stars, start, stop, t, tag, team, test, tst, un, uninstall,
    unpublish, unstar, up, update, v, version, view, whoami

npm <cmd> -h     quick help on <cmd>
npm -l           display full usage info
npm help <term>  search for help on <term>
npm help npm     involved overview

Specify configs in the ini-formatted file:
    /home/dmitry/.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@3.10.10 /usr/lib/node_modules/npm

trying to update

(crm) ➜  backend git:(develop) ✗ sudo npm -g install npm@next
- asap@2.0.5 node_modules/npm/node_modules/asap
- fstream@1.0.10 node_modules/npm/node_modules/fstream
- fstream-npm@1.2.0 node_modules/npm/node_modules/fstream-npm
- normalize-git-url@3.0.2 node_modules/npm/node_modules/normalize-git-url
- realize-package-specifier@3.0.3 node_modules/npm/node_modules/realize-package-specifier
/usr/lib
└── (empty)

npm ERR! Linux 4.13.4-200.fc26.x86_64
npm ERR! argv "/usr/bin/node" "/bin/npm" "-g" "install" "npm@next"
npm ERR! node v6.11.3
npm ERR! npm  v3.10.10
npm ERR! path /usr/lib/node_modules/npm/node_modules/columnify
npm ERR! code EEXIST
npm ERR! errno -17
npm ERR! syscall mkdir

npm ERR! EEXIST: file already exists, mkdir '/usr/lib/node_modules/npm/node_modules/columnify'
npm ERR! File exists: /usr/lib/node_modules/npm/node_modules/columnify
npm ERR! Move it away, and try again.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/dmitry/Projects/crm/backend/npm-debug.log
npm ERR! code 1

@aog1971
Copy link

aog1971 commented Oct 25, 2017

# trying to update the same problem

C:\WINDOWS\system32>npm -g install npm@next
npm ERR! path C:\Users\aog\AppData\Roaming\npm\npm
npm ERR! code EEXIST
npm ERR! Refusing to delete C:\Users\aog\AppData\Roaming\npm\npm: node_modules/npm/bin/npm-cli.js symlink target is not controlled by npm C:\Users\aog\AppData\Roaming\npm\node_modules\npm
npm ERR! File exists: C:\Users\aog\AppData\Roaming\npm\npm
npm ERR! Move it away, and try again.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\aog\AppData\Roaming\npm-cache_logs\2017-10-25T08_27_20_354Z-debug.log

@aog1971
Copy link

aog1971 commented Nov 21, 2017

Resolved, I have deleted the folder C:\Users\aog\AppData\Roaming\npm and then the executed npm -g and npm@5.5.1 and it has been installed correctly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests