Skip to content

Instantly share code, notes, and snippets.

@ThinhPhan
Last active June 6, 2019 05:42
Show Gist options
  • Save ThinhPhan/5ec48ad344ed18d1ac9362adcc1ebdef to your computer and use it in GitHub Desktop.
Save ThinhPhan/5ec48ad344ed18d1ac9362adcc1ebdef to your computer and use it in GitHub Desktop.
Install Node on Raspi3

Opt 1: From Nodesource

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

Opt 2: Download & Install

wget https://nodejs.org/dist/v4.3.2/node-v4.3.2-linux-armv6l.tar.gz 
tar -xvf node-v4.3.2-linux-armv6l.tar.gz 
cd node-v4.3.2-linux-armv6l

sudo cp -R * /usr/local/

Check Node version

node -v
npm -v
#!/bin/sh
# Install Node v8
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
# Development tools to build native addons
sudo apt-get install -y gcc g++ make
# Install the Yarn package manager
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install -y yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment