Last active
October 22, 2019 11:01
-
-
Save hafeez-syed/e56137f846576db159ef39b2211ceabf to your computer and use it in GitHub Desktop.
Install Node LTS via NVM and move global packages along
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
1. # LIST node versions remote | |
``` | |
$ nvm ls-remote | |
``` | |
2a. # OPTION1 - INSTALL new version of node via NVM | |
``` | |
$ nvm install v1.1.1 | |
``` | |
2b. # OPTION2 - INSTALL new version of node via NVM and move all node packages from older node to newer | |
``` | |
$ nvm install v1.1.1 --lts --reinstall-packages-from=1.0.0 | |
``` | |
3. # use newly installed version of node | |
``` | |
$ nvm use v1.1.1 | |
``` | |
4. # make the node version default | |
``` | |
$ nvm alias default v1.1.1 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment