Last active
February 7, 2017 08:49
-
-
Save bratsun/2549999c38229480ea3765442944a461 to your computer and use it in GitHub Desktop.
update node.js on Ubuntu
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
sudo apt-get install --reinstall nodejs-legacy # fix /usr/bin/node | |
sudo n rm 6.0.0 # replace number with version of Node that was installed | |
sudo npm uninstall -g n |
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment