Last active
February 25, 2020 21:48
-
-
Save ghalusa/5485982 to your computer and use it in GitHub Desktop.
Install node.js on a raspberry pi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wget http://nodejs.org/dist/v0.10.5/node-v0.10.5-linux-arm-pi.tar.gz | |
| cd /usr/local | |
| sudo tar xzvf ~/node-v0.10.5-linux-arm-pi.tar.gz --strip=1 | |
| vi ~/.bash_aliases | |
| export PATH=$PATH:/usr/local/bin/node | |
| bash | |
| node -v | |
| (v0.10.5) | |
| npm -v | |
| (1.2.18) |
In this blog post an easy method is described:
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@xseignard You can add paths to /etc/environment to make it global.