1.node python that needs to run in version 2.6 or 2.7 python,ubuntu12.04 is 2.7 so don't worry, you can check the Python version with the code below.
Python
2. Before installing the Nodejs, if the g++ and Libssl-dev are not installed, install first, the installation method is as follows:
$ sudo apt-get install g++ $ sudo apt-get install Libssl-dev
3. Download the Nodejs source package at the address below,Remember, it must be . Source Code, do not go down the Linux Binaries (. tar.gz), I was under the Linux Binaries, in the compilation of execution./configure said it doesn't exist.
https://nodejs.org/download/
4. Put the downloaded node source package in a location (find yourself a place ha) extracted
5. Compile, install (this will wait a while)
$ sudo su (get root permission, otherwise error: IOError: [Errno] Permission denied: '/usr/local/bin/node ') $./configure $ make && mak E Install
6. After installing, check the version of node under console node-v
We can refer to:
http://nqdeng.github.io/7-days-nodejs/#1.3.1
Https://cnodejs.org/topic/53a92af6c3ee0b58203258fe
ubuntu12.04 installing node. js Detailed steps