Last active
June 22, 2022 21:48
-
-
Save UbuntuEvangelist/ec4fbc4199eae232963bb42f10041d13 to your computer and use it in GitHub Desktop.
Completely Reinstall Node JS & NPM
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 -i | |
apt remove --purge nodejs npm | |
apt clean | |
apt autoclean | |
apt install -f | |
apt autoremove | |
apt install curl | |
apt install python3 g++ make python3-pip | |
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - | |
apt install -y nodejs | |
apt install gcc g++ make | |
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null | |
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
apt update && apt install yarn | |
node -v && npm -v | |
#node.js #node #npm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment