angular / angular-hint

run-time hinting for AngularJS applications
362 stars 45 forks source link

Trouble installing Angular-hint #66

Closed NgYueHong closed 9 years ago

NgYueHong commented 9 years ago

I am trying to install Angular-hint with this command:

npm install angular-hint

During the installation, I see angular-hint folder with files created in node_modules folder. But at the end of installation, everything is gone. In the command window, I saw this:

E:\www\angularjs\angular-hint\node_modules\angular-hint\node_modules\angular-hint-log\node_modules\karma\node_modules\socket.io\node_modules\socke
t.io-client\node_modules\ws>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
npm ERR! EEXIST, open 'C:\Users\MyPC\AppData\Roaming\npm-cache\50d41671-che-browserify-4-2-3-package-tgz.lock.STALE'
File exists: C:\Users\MyPC\AppData\Roaming\npm-cache\50d41671-che-browserify-4-2-3-package-tgz.lock.STALE
Move it away, and try again.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "angular-hint"
npm ERR! cwd E:\www\angularjs\angular-hint
npm ERR! node -v v0.10.34
npm ERR! npm -v 1.4.28
npm ERR! path C:\Users\MyPC\AppData\Roaming\npm-cache\50d41671-che-browserify-4-2-3-package-tgz.lock.STALE
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! not ok code 0

Why is it not installing?

SomeKittens commented 9 years ago

This is a known race condition with npm versions less than 2.0.0. Updating npm should solve it.