
Npm install -g hope you like this tutorial please share your love and spread this post. To update current version of npm run following command: To install npm version you like you can first check the installed version of nodejs and npm as below: To uninstall specific node version you can run following command: Now, that you have multiple versions of nodejs each time you want to work with specific version of node js run following command to pick one you like:Ībove command will make v12.13.1 as a default node version. Now to install nodejs pick the version you like to install and run following command on your terminal window: To check available nodejs version run following command on your terminal window. Once you have nvm installed on your machine let's now install nodejs and nvm. Step 3: Set the location of installation and click on ‘Continue.’. Step 2: Download the file and open it in Finder.

Follow these installation steps: Step 1: Go to the Node.js website.


Let's first install NVM (Node Version Manager) on our mac or linux machine using following tutorial: Downloading Node.js for macOS is relatively simple. You can use nvm to manage different types of nodejs on your mac or linux machine. When you are working on different nodejs based projects it is good idea to work with multiple nodejs versions. Installing different versions of Nodejs on Mac OS or Ubuntu To install the current version of Node.js and npm via Homebrew, open a Terminal window on your Mac and enter this command: brew install node However, I highly recommend you install specific major versions of Node.js as a matter of practice, because it forces you to be aware of exactly what version youre installing.
