Created
May 18, 2023 15:39
-
-
Save bgoonz/eff969499de87119105faf48b80c58be to your computer and use it in GitHub Desktop.
reset node on ubuntu
This file contains hidden or 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
sudo apt remove --purge nodejs npm | |
sudo apt clean | |
sudo apt autoclean | |
sudo apt install -f | |
sudo apt autoremove | |
sudo apt install curl | |
cd ~ | |
curl -fsSL https://deb.nodesource.com/setup_17.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
curl -sS 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 update | |
sudo apt install yarn | |
node -v && npm -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment