Be the first user to complete this post

  • 0
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:

  1. Find the environment variables of a nodejs process in linux
  2. Resolved - sudo npm command not found
  3. Installing, Listing and Uninstalling packages using npm
  4. Creating a simple event emitter using nodejs
  5. How to publish a package on npm
  6. nodejs: generate uuid / guid
  7. Resolved - Error: listen eaccess using nodejs and pm2
  8. What is npm shrinkwrap and when is it needed