question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

node-gyp fails with node 8 on travis

See original GitHub issue

See the following build history: https://travis-ci.org/ProjectMirador/mirador/builds

This has been a common problem for our contributors who attempt to clone and run the project with npm install without explicitly setting the node version, and is also an extremely commonly googled error that never seems to have gone away. Most of the time upgrading above node 6 resolves the issue, but other times it requires deleting binaries. What is the root of this problem and what configuration can I implement that will stop this happening for our contributors (and Travis)?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
addaleaxcommented, May 30, 2017

V8@5.9 requiring a C++11 compiler

We’ve been requiring that for ages, though (since at least Node 4, I think?)

1reaction
refackcommented, May 30, 2017

~For posterity: node versions are not ABI backwards compatible so the version of nan used is incompatible with node@8.x~ For posterity, travis needs to be told explicitly to use GCC 4.8 with the following in the .travis.yml

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

As per https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements

Read more comments on GitHub >

github_iconTop Results From Across the Web

TravisCI failing on Node BCrypt with node-gyp errors
The issue here is that bcrypt required the use of a c++ library. Travis does not have this installed. To make it work...
Read more >
node-gyp - npm
node -gyp - Node.js native addon build tool. Build Status npm. node-gyp is a cross-platform command-line tool written in Node.js for ...
Read more >
Latest Node.js topics - Travis CI Community
Topic Replies Views Activity Mocha not found! travis‑build 1 1006 December 21, 2021 Node_js lts/* failing on Windows · windows 4 951 December 14, 2021 Issue...
Read more >
node-gyp | Yarn - Package Manager
node -gyp - Node.js native addon build tool. Build Status npm. node-gyp is a cross-platform command-line tool written in Node.js for compiling native...
Read more >
Building a JavaScript and Node.js project - Travis CI Docs
The .nvmrc file is only read when node_js key in your .travis.yml files does not specify a nodejs version. When the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found