tag:help.appveyor.com,2012-11-13:/discussions/problems/865-error-running-npm-install
AppVeyor: Discussion
2018-10-19T08:16:46Z
tag:help.appveyor.com,2012-11-13:Comment/34856189
2014-10-06T19:38:05Z
2014-10-06T19:38:07Z
Error running npm install
<div><p>When running <code>npm install</code> as part of my pre-build
script, the command exits with an error.</p>
<p>Here is the relevant logs:</p>
<pre>
<code>[19:15:12] npm install
[19:15:12] npm WARN package.json Heartbeat@0.0.0 No description
[19:15:23] npm WARN package.json Heartbeat@0.0.0 No repository field.
[19:15:23] npm WARN package.json Heartbeat@0.0.0 No README data
[19:15:23] npm WARN optional dep failed, continuing imagemin-jpegtran@0.1.0
[19:18:13] npm WARN optional dep failed, continuing imagemin-optipng@0.1.0
[19:18:21] npm WARN optional dep failed, continuing imagemin-pngquant@0.1.3
[19:18:24] npm WARN optional dep failed, continuing imagemin-gifsicle@0.1.1
[19:18:26] npm ERR! EEXIST, open 'C:\Users\appveyor\AppData\Roaming\npm-cache\695421b6-adable-stream-1-0-32-package-tgz.lock'
[19:18:32] File exists: C:\Users\appveyor\AppData\Roaming\npm-cache\695421b6-adable-stream-1-0-32-package-tgz.lock
[19:18:32] Move it away, and try again.
[19:18:32]
[19:18:32] npm ERR! System Windows_NT 6.2.9200
[19:18:32] npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
[19:18:32] npm ERR! cwd C:\projects\heartbeat\Heartbeat.Web
[19:18:32] npm ERR! node -v v0.10.32
[19:18:32] npm ERR! npm -v 1.4.28
[19:18:32] npm ERR! path C:\Users\appveyor\AppData\Roaming\npm-cache\695421b6-adable-stream-1-0-32-package-tgz.lock
[19:18:32] npm ERR! code EEXIST
[19:18:32] npm ERR! errno 47
[19:18:32] Command exited with code 47</code>
</pre>
<p>It looks like it may be related to this npm issue: <a href=
"https://github.com/npm/npm/issues/6309">https://github.com/npm/npm/issues/6309</a></p>
<p>The command does work on my dev machine by the way. (npm
version: 1.4.9)</p></div>
david.thibault
tag:help.appveyor.com,2012-11-13:Comment/34856189
2014-10-06T19:44:57Z
2014-10-06T19:44:57Z
Error running npm install
<div><p>Hi David,</p>
<p>The issue might be related to recent Node.js releases: <a href=
"http://help.appveyor.com/discussions/questions/534-npm-cache">http://help.appveyor.com/discussions/questions/534-npm-cache</a></p></div>
Feodor Fitsner
tag:help.appveyor.com,2012-11-13:Comment/34856189
2014-10-06T19:56:15Z
2014-10-06T19:56:15Z
Error running npm install
<div><p>Adding <code>Install-Product node 0.10.30 x86</code> to my
install script made it work. Thanks!</p></div>
david.thibault