Skip to content

Instantly share code, notes, and snippets.

@joanroig
Last active May 25, 2021 20:32
Show Gist options
  • Save joanroig/cf730af43e4656f92476597a6d37f7f5 to your computer and use it in GitHub Desktop.
Save joanroig/cf730af43e4656f92476597a6d37f7f5 to your computer and use it in GitHub Desktop.
Raspberry Pi NodeJS setup

nodejs

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

yarn

curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment