-
Notifications
You must be signed in to change notification settings - Fork 4
Install Node.js
Dayton edited this page Dec 22, 2013
·
10 revisions
-
sudo mkdir /opt/node; cd $_
a happy home for Nodejs -
sudo wget http://nodejs.org/dist/v0.10.22/node-v0.10.22-linux-arm-pi.tar.gz
there may be a newer version -
sudo tar xvzf node-*-linux-arm-pi.tar.gz
explode sudo rm node-v0.10.22-linux-arm-pi.tar.gz
-
sudo mv node*/* .
simplify path -
sudo ex -s -c 'g/PATH/s/"$/:\/opt\/node\/bin"/' -c wq /etc/profile
add node to $PATH -
source /etc/profile
reset $PATH -
node --version
should read v0.10.22