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.

npm install fails on linux without g++ installed

See original GitHub issue

I have a fresh installation of Ubuntu 14.04 and installed compiled version of node.js 10.38.

npm install failed on node-gyp rebuild step with error ‘make: g++: Command not found’.

apt-get install g++ solves the problem. It make sense put g++ dependency into README.md Prerequisites section.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

11reactions
yaswanthsvistcommented, Jun 17, 2016

for installing g++ in fedora and other linux os use

sudo yum install /usr/bin/g++ or sudo dnf install gcc-c++

3reactions
uluhonolulucommented, Dec 11, 2018

sudo apt-get install build-essential checkinstall fixed it for me (Ubuntu)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error installing node module - Stack Overflow
If it says that it is already installed, then first remove gcc, g++, build-essential and install build-essential. To do the same, run this....
Read more >
NPM install error on Ubuntu: npm ERR! node install.js - Learn
I attempted installing Elm on Ubuntu 16.04.6 LTS, using this command: npm ... npm ERR! Failed at the elm@0.19.0-no-deps install script 'node install.js'....
Read more >
npm-install - npm Docs
npm install (in a package directory, no arguments):. Install the dependencies to the local node_modules folder. In global mode (ie, with -g or...
Read more >
Don't use `sudo` with `npm`. Running sudo npm install - Medium
Even sudo npm install -g with a valid installation target can mess things up for you and make it hard to use npm...
Read more >
NPM install error - Material Design for Bootstrap
Delete node_modules folder and package-json.lock · Then run npm i · If problem still exists repeat point 1 and go to 4 point...
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