install nodejs on raspberry pi

612 ワード

Justフォロワーthe steps below.
Downloadノード.js source Raspberry Pi Model A,B,B+and Compute Module
wget https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv6l.tar.gz 
tar -xvf node-v4.0.0-linux-armv6l.tar.gz 
cd node-v4.0.0-linux-armv6l
Raspberry Pi 2 Model B
wget https://nodejs.org/dist/v4.0.0/node-v4.0.0-linux-armv7l.tar.gz 
tar -xvf node-v4.0.0-linux-armv7l.tar.gz 
cd node-v4.0.0-linux-armv7l
Copy to/usr/local
sudo cp -R * /usr/local/
That's itTo check Node.js is properly install and you have the right version,run the command node-v