To update Node version on Mac, use the brew upgrade node command. It will install the latest version of Node.js. 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.
0 Comments
Leave a Reply. |