Skip to content

Instantly share code, notes, and snippets.

@X4
Created March 23, 2015 20:22
Show Gist options
  • Save X4/4fc123519fcfe7f93ce5 to your computer and use it in GitHub Desktop.
Save X4/4fc123519fcfe7f93ce5 to your computer and use it in GitHub Desktop.
Setup NodeJS on Raspberry Pi 2 in < 5 Minutes
Prerequisites:
==============
1. Raspbian
2. Raspberry Pi (2)
sudo apt-get update
sudo apt-get upgrade
cd
## Source: http://node-arm.herokuapp.com/
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
## Source
git clone [email protected]:quick2wire/quick2wire-gpio-admin.git ~/gpi-admin &&
cd ~/gpio-admin
make -j2
sudo make install
sudo adduser pi gpio
sudo npm install -g node-gyp
@X4
Copy link
Author

X4 commented Mar 23, 2015

Now I prefer:
sudo npm install -g n
https://github.com/tj/n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment