Be the first user to complete this post
|
Add to List |
set the default node version using nvm
If you are using nvm for managing nodejs(which is the recommended way), you can easily ensure that the same version of nodejs is available in all terminal windows or tabs. Below are some helpful commands to achieve that. To check your current, active node version
node --version
To check whats node versions are locally installed
nvm ls
To install a particular node version
nvm install v7.3.0
To set a certain node version as the default
nvm alias default v7.3.0
Hope this helps!
Also Read:
- Debugging nodejs applications using node-inspector and Chrome Dev Tools
- Understanding routers in express 4.0 - Visually
- Setup passportjs for local authentication and authorization using expressjs
- Use node in es6 syntax with babel transpiling
- Understanding semver versioning for your nodejs packages