npm install fails on linux without g++ installed
See original GitHub issueI 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:
- Created 8 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
for installing g++ in fedora and other linux os use
sudo yum install /usr/bin/g++ or sudo dnf install gcc-c++
sudo apt-get install build-essential checkinstall
fixed it for me (Ubuntu)