

NVM is the script-based node version manager. It will install the latest version of Node.js. Then, with the following command, you can get up-to-date with formulae and upgrade to the latest Node.js version. The Homebrew is one of the popular package managers for MacOS. If you are using Mac, Homebrew is the package manager you can use to install different packages.Īssuming you have previously installed node with. To update Node version on Mac, use the brew upgrade node command. The following command will install the latest version of the node. sudo npm install -g n.Īssuming you have successfully installed n.


You can install the first node version and then run the following command. I assume that you already have some version of the node installed on your machine. Using NVM: A script-based node version manager.Using Homebrew: Type this command: brew upgrade node.Using N: An npm-based node version manager.Getting left behind will be the never option for you. You need to update the latest version to work with other JS libraries and frameworks.Įven node.js is improving from its previous version, so there are many reasons to upgrade your node.js to the latest version.
