Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM Installs fail #1314

Closed
mustela opened this issue Apr 16, 2015 · 8 comments
Closed

NPM Installs fail #1314

mustela opened this issue Apr 16, 2015 · 8 comments
Labels

Comments

@mustela
Copy link

mustela commented Apr 16, 2015

This is not the first time it happens, we have this issue at least 2 or 3 times per week

The problem seems to be when trying to run npm install grunt grunt-cli karma karma-cli bower

npm ERR! EEXIST, open '/home/shippable/.npm/98196386-ble-npm-lodash-2-4-1-package-tgz.lock'
File exists: /home/shippable/.npm/98196386-ble-npm-lodash-2-4-1-package-tgz.lock
Move it away, and try again. 

npm ERR! System Linux 3.13.0-43-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "grunt" "grunt-cli" "karma" "karma-cli" "bower"
npm ERR! cwd /home/shippable/workspace/src/github.com/packethost/portal
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /home/shippable/.npm/98196386-ble-npm-lodash-2-4-1-package-tgz.lock
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! not ok code 0

https://app.shippable.com/builds/552fd3f731d6ed0c0026f791

@bobeagan
Copy link

Old version of npm that needs to be updated. See npm/npm#6309
Causing problems for me on several projects, too.

@manishas
Copy link
Contributor

There is a workaround for this npm issue in this thread - #713

You will need to update your YML file to include the following:

before_install:
  - npm install -g npm@next

Let me know if this works!

@mustela
Copy link
Author

mustela commented Apr 21, 2015

Thanks @manishas! Updated. Will check a few deploys and close the issue if they run ok.

@mustela
Copy link
Author

mustela commented Apr 21, 2015

@manishas take a look to the results now:

 npm install -g npm@next
npm ERR! Error: EACCES, unlink '/usr/bin/npm'
npm ERR!  { [Error: EACCES, unlink '/usr/bin/npm'] errno: 3, code: 'EACCES', path: '/usr/bin/npm' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.13.0-43-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "npm@next"
npm ERR! cwd /home/shippable/workspace/src/github.com/packethost/portal
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /usr/bin/npm
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, unlink '/usr/bin/npm'
npm ERR! error rolling back Error: EACCES, unlink '/usr/bin/npm'
npm ERR! error rolling back  { [Error: EACCES, unlink '/usr/bin/npm'] errno: 3, code: 'EACCES', path: '/usr/bin/npm' }
npm ERR! not ok code 0

@manishas
Copy link
Contributor

manishas commented May 6, 2015

@mustela I looked your latest builds and looks like everything is working now.

I am closing this issue, but if you post your solution to the issue you were facing, it will help other folks :)

@manishas manishas closed this as completed May 6, 2015
@mustela
Copy link
Author

mustela commented May 6, 2015

I didn't change anything :), so maybe some change in your end?

@mustela
Copy link
Author

mustela commented May 7, 2015

@manishas it is still happening I just got another one https://app.shippable.com/builds/554bae94ff724e0c00e4e752

Any idea?

@mberrueta
Copy link

I have the same issue, but randomly
I included the

  • npm install -g npm@next
  • npm install

and sometimes work, and sometime fails

maybe an issue with internet connection?

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

No branches or pull requests

4 participants