Skip to content

Instantly share code, notes, and snippets.

@chriswoodle
Last active March 15, 2018 03:15
Show Gist options
  • Save chriswoodle/819bcc97c1b826663d136689727ce90b to your computer and use it in GitHub Desktop.
Save chriswoodle/819bcc97c1b826663d136689727ce90b to your computer and use it in GitHub Desktop.
# Setup pi (Raspbian Stretch Lite 2018-03-13)
sudo apt update -y
sudo apt upgrade -y
sudo apt autoremove -y
sudo apt install git -y
# Install Nodejs
cd ~
wget https://nodejs.org/dist/v8.10.0/node-v8.10.0-linux-armv6l.tar.xz
tar -xvf node*
cd node*/
sudo cp -R * /usr/local/
cd ~
rm -rf node*
# Fix npm global
mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo "export PATH=~/.npm-global/bin:\$PATH" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment