angular / angular-hint

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

Error while installing on Mac Yosemite #65

Closed filipedeschamps closed 9 years ago

filipedeschamps commented 9 years ago

There's no way to install it, every time I receive this error message:

npm ERR! EEXIST, open '/Users/filipedeschamps/.npm/66b2522a-ps-npm-karma-0-12-31-package-tgz.lock'
File exists: /Users/filipedeschamps/.npm/66b2522a-ps-npm-karma-0-12-31-package-tgz.lock
Move it away, and try again. 

npm ERR! System Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "angular-hint" "--save-dev"
npm ERR! cwd /Users/filipedeschamps/Library/Mobile Documents/com~apple~CloudDocs/development/insiderNews
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /Users/filipedeschamps/.npm/66b2522a-ps-npm-karma-0-12-31-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! not ok code 0
laurelnaiad commented 9 years ago

Try

chown -R $(whoami) ~/.npm

to take ownership of that dir....

Works for some of our Mac users who have issues with this directory.

filipedeschamps commented 9 years ago

Thanks @laurelnaiad now I'm receiving in another file, very strange:

npm ERR! EEXIST, open '/Users/filipedeschamps/.npm/e4ec8a3b-ps-npm-esprima-1-2-2-package-tgz.lock'
File exists: /Users/filipedeschamps/.npm/e4ec8a3b-ps-npm-esprima-1-2-2-package-tgz.lock
Move it away, and try again. 

npm ERR! System Darwin 14.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "angular-hint" "--save-dev"
npm ERR! cwd /Users/filipedeschamps/Library/Mobile Documents/com~apple~CloudDocs/development/insiderNews
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /Users/filipedeschamps/.npm/e4ec8a3b-ps-npm-esprima-1-2-2-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! not ok code 0
btford commented 9 years ago

We're currently seeing this on TravisCI as well...

Looking into it.

SomeKittens commented 9 years ago

This is due to a race condition in 1.x versions of npm.