Installing node. js in Lubuntu

Source: Internet
Author: User
Tags install node

Install node. js under Ubuntu

sudo Install  Make sudo add-apt-repository ppa:chris-lea/node. jssudo apt-get updatesudo Install Nodejs

Installing node. js on Cubieboard

My Cubieboard 2 installed is Linaro 12.11, using Ubuntu installation method does not correctly install node. js, had to be a way to learn from the Raspberry Pi Community installation experience to install.

1. First download the Raspberry Pi version of the node. js package, because the Raspberry Pi is also the arm architecture, so he can attack Jade Stone Mountain.

wget http://nodejs.org/dist/v0.10.2/node-v0.10.2-linux-arm-pi.tar.gz

2. Unzip the code package.

tar -xvzf node-v0. 10.2-linux-arm-pi. tar. gz

3. Verify node.

Node-v0. 10.2-linux-arm-pi/bin/node--version

You can see that the version number is v0.10.2.

4. Move the node. js package to the directory you want.

MV Node-v0. 10.2-linux-arm-pi ~/applications/nodejs

5. Set up quick start.

VI ~/.BASHRC

Add the following to the file:

 for nodejsnode_js_home=/home/linaro/applications/nodejspath= $PATH: $NODE _js_home/bin

6. Restart the system for ~/.BASHRC to take effect.

sudo 1  --versionv0. 10.2  --version1.2.  the

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.