Nodeenv: error trying to start env

I got an error while trying to start virtual env using nodeenv:

$ nodeenv env * Install node.js (0.8.16) ..Traceback (most recent call last): File "/usr/local/bin/nodeenv", line 9, in <module> load_entry_point('nodeenv==0.6.0', 'console_scripts', 'nodeenv')() File "/usr/local/lib/python2.7/dist-packages/nodeenv-0.6.0-py2.7.egg/nodeenv.py", line 494, in main create_environment(env_dir, opt) File "/usr/local/lib/python2.7/dist-packages/nodeenv-0.6.0-py2.7.egg/nodeenv.py", line 410, in create_environment install_node(env_dir, src_dir, opt) File "/usr/local/lib/python2.7/dist-packages/nodeenv-0.6.0-py2.7.egg/nodeenv.py", line 332, in install_node callit(['make'], opt.verbose, True, node_src_dir, env) File "/usr/local/lib/python2.7/dist-packages/nodeenv-0.6.0-py2.7.egg/nodeenv.py", line 263, in callit % (cmd_desc, proc.returncode)) OSError: Command make failed with error code 2 

I did not find anything on the Internet about this error, could you help a little?

+7
source share
2 answers

Well, it turned out using verbose mode:

 $ nodeenv env -v 

g ++ was missing

 sudo apt-get install build-essential g++ 

Solves it!

+15
source

Also, what @ denis89 measured, after adding the "-v" option, I found nodeenv:

'g ++: internal compiler error: Killed (program cc1plus)'.

After Googled, I came to the conclusion that the memory of the machine is small. Since I am running nodeenv in Vagrant, it is easy to change the memory as follows:

 config.vm.provider "virtualbox" do |v| v.name = "working" v.memory = 2048 end 

This answer may be helpful.

+2
source

All Articles