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 install error on travis #366

Closed
kidtronnix opened this issue Nov 1, 2015 · 6 comments
Closed

npm install error on travis #366

kidtronnix opened this issue Nov 1, 2015 · 6 comments

Comments

@kidtronnix
Copy link

Hi i am not sure if this is a problem with bcrypt but when I try and run my travis CI job i get an npm install error when it is installing [email protected]. Weird thing is it runs fine locally with nearly identical version of node and npm.

Here is the output from the job

@kidtronnix
Copy link
Author

So I see lots of people have been having similar problems recently but does anyone know how to fix it for Travis?

@kidtronnix
Copy link
Author

Ok i fixed this now by adding this to .travis.yml:

env:
  - CXX=g++-4.8

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8

@besarthoxhaj
Copy link

@smaxwellstewart thanks for this! Out of curiosity may I ask what these changes are?

@kidtronnix
Copy link
Author

Thinks it's something to do with node's c++ core, changing the version of the compiler or something.

@roppa
Copy link

roppa commented Jun 9, 2016

This fixed it for me, thanks!

@jessevdp
Copy link

OMG this saved my life! 😂 Curious, is this actually referenced in the README of this package? Ifnot then ehh, why?

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

No branches or pull requests

4 participants