Skip to content

Instantly share code, notes, and snippets.

@jasenmichael
Last active June 15, 2022 03:08
Show Gist options
  • Save jasenmichael/59e6f5f66b16b5086f6b3381aab083d2 to your computer and use it in GitHub Desktop.
Save jasenmichael/59e6f5f66b16b5086f6b3381aab083d2 to your computer and use it in GitHub Desktop.
#!/bin/bash
## installs node 16.x
## install with:
## curl -fsSL https://tinyurl.com/install-node-16-pop-os | sudo -E bash -
sudo rm /etc/apt/sources.list.d/nodesource.list
sudo apt --fix-broken install
sudo apt update
sudo apt remove nodejs
sudo apt remove nodejs-doc
sudo apt autoremove
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt update
sudo apt-get install -y nodejs
mkdir ${HOME}/.npm-packages
npm config set prefix "${HOME}/.npm-packages"
node -v
npm -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment