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