Created
October 3, 2017 06:40
-
-
Save khoatran/6d00e978eba079f1efc5d666e7efacee to your computer and use it in GitHub Desktop.
Upgrade nodejs
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 npm cache clean -f | |
sudo npm install -g n | |
sudo n stable | |
sudo ln -sf /usr/local/n/versions/node/<version>/bin/node /usr/bin/node | |
sudo ln -sf /usr/local/n/versions/node/<version>/bin/npm /usr/local/bin/npm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment