Skip to content

Instantly share code, notes, and snippets.

@kenotron
Created August 10, 2020 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenotron/8536c851331411e9850c5fdf74303579 to your computer and use it in GitHub Desktop.
Save kenotron/8536c851331411e9850c5fdf74303579 to your computer and use it in GitHub Desktop.
New VM with node.js
#!/bin/bash
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
nvm install --lts
npm install -g yarn
sudo apt-get update
sudo apt-get install -y libappindicator1 fonts-liberation build-essential
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment