Skip to content

Instantly share code, notes, and snippets.

@anudit
Last active February 1, 2021 04:58
Show Gist options
  • Save anudit/194f764c922d5329fe70ebdb3de65de4 to your computer and use it in GitHub Desktop.
Save anudit/194f764c922d5329fe70ebdb3de65de4 to your computer and use it in GitHub Desktop.
Setup Node 14, npm, yarn, make on Ubuntu 20 or WSL
bash <(curl -sL ${https://gist.githubusercontent.com/anudit/194f764c922d5329fe70ebdb3de65de4/raw/d0eb310ddf86a214843a8fa5701595c53dcfc2e4/setup.sh})
#!/usr/bin/env bash
sudo apt-get -y update
sudo apt-get -y upgrade
cd ~
curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install -y nodejs
node -v
npm -v
sudo apt-get install gcc g++ make
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 yarn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment