Simple steps to install nodejs 4.x.x on Raspberry Pi 2:
I got version 0.10.4 yours can be different.
Let's update it to the version 4.x.x:
Restart the terminal and type
I got version v4.2.1
P.S. OS version on my Raspberry Pi:
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
Release: 7.8
Codename: wheezy
You can check your version simply by typing:
sudo apt-get update sudo apt-get upgrade curl -sL https://deb.nodesource.com/setup | sudo bash - sudo apt-get install nodejs
I got version 0.10.4 yours can be different.
Let's update it to the version 4.x.x:
sudo npm install -g n sudo n stable
Restart the terminal and type
node -v
I got version v4.2.1
P.S. OS version on my Raspberry Pi:
Distributor ID: Debian
Description: Debian GNU/Linux 7.8 (wheezy)
Release: 7.8
Codename: wheezy
You can check your version simply by typing:
lsb_release -a
No comments:
Post a Comment