Skip to content

Instantly share code, notes, and snippets.

@bgoonz
Created May 18, 2023 15:39
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 bgoonz/eff969499de87119105faf48b80c58be to your computer and use it in GitHub Desktop.
Save bgoonz/eff969499de87119105faf48b80c58be to your computer and use it in GitHub Desktop.
reset node on ubuntu
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