Last active
June 15, 2022 03:08
-
-
Save jasenmichael/59e6f5f66b16b5086f6b3381aab083d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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