Skip to content

Instantly share code, notes, and snippets.

@hafeez-syed
Last active October 22, 2019 11:01
Show Gist options
  • Save hafeez-syed/e56137f846576db159ef39b2211ceabf to your computer and use it in GitHub Desktop.
Save hafeez-syed/e56137f846576db159ef39b2211ceabf to your computer and use it in GitHub Desktop.
Install Node LTS via NVM and move global packages along
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