Update to latest version of Nodejs with nvm

PHOTO EMBED

Mon Jul 05 2021 11:17:27 GMT+0000 (Coordinated Universal Time)

Saved by @hisam #javascript #nodejs #nvm #npm

//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>
content_copyCOPY

https://dev.to/kowalevski/how-to-install-or-update-node-by-using-nvm-node-version-manager-1ip1