Skip to content

Instantly share code, notes, and snippets.

@cgkio
Created December 12, 2013 21:41
Show Gist options
  • Save cgkio/7936029 to your computer and use it in GitHub Desktop.
Save cgkio/7936029 to your computer and use it in GitHub Desktop.
Install node.js serial port on Rasperry Pi
  • Starting with a a vanilla New Out of the Box Software (NOOBS) Raspbian image
  • Log into your Raspberry Pi through whatever means works best and ensure you are on a terminal prompt for the remaining steps. This could be local or through an SSH (or a serial connection if you like).
  • Issue the following commands to ensure you are up to date:
   sudo apt-get update
   sudo apt-get upgrade -y
  • Download and install node.js:
   wget http://node-arm.herokuapp.com/node_latest_armhf.deb
   sudo dpkg -i node_latest_armhf.deb
   node -v
  • If your paths are not set correctly:
   echo 'export PATH="$PATH:/opt/node/bin"' >> ~/.bashrc
   source ~/.bashrc
  • Install using npm, note this will take a while as it is actually compiling code and that ARM processor is getting a workout.
   npm install serialport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment