Created
August 9, 2020 18:13
-
-
Save dantheman213/f4c83de9438b17403e914c9a1f654519 to your computer and use it in GitHub Desktop.
update_nodejs_npm_linux.sh
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
Update nodejs to latest version: | |
sudo npm install -g n | |
sudo n latest | |
Update npm to latest version: | |
sudo npm install -g npm | |
Do what @runcible suggested | |
hash -d npm | |
Try npm install | |
npm i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment