ubuntu12.04 installing node. js Detailed steps

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.