//To see all versions of Node that are installed on your machine use the command:
$ npm -v
//To see versions installed on machine
$ nvm ls
-> v16.1.0
system
default -> node (-> v16.1.0)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v16.1.0) (default)
stable -> 16.1 (-> v16.1.0) (default)
// add a new version
$ nvm install <version>
// to switch to a different verison
$ nvm use <version>
Comments