Install Node.js and NPM on Windows
Note: If you’re on a Mac computer, check out my tutorial for How to Install Node.js and NPM on a Mac.
Install Node.js and NPM
Go to the official Node.js site which will offer you two versions of Node to download. Click on the Installer that says “Recommended For Most Users”.
This will download a
.msi file at the bottom of your browser. Click on it to launch the installer.
Accept the license agreement and click NEXT to begin the Node.js Setup Wizard:
Install Node in the default folder selected, which will be
Make sure to select
npm package manager on the Custom Setup screen, not the default of
Node.js runtime. This way we’ll install Node and NPM at the same time.
The Setup Wizard is now ready to install Node and NPM. Click on the “Install” button.
To confirm we’ve installed everything correctly, open the “Command Prompt” app:
This will launch the Command Prompt. To confirm Node is installed type
node -v which will print the current version number . To confirm NPM is installed type
npm -v which will print its current version number.
Don’t worry if your numbers vary from mine. Node and NPM are updated frequently so it’s likely the numbers won’t match.
How to Update Node and NPM
To install updates for Node and NPM, download the installer from the Node.js website and run it again. The new version will replace the older version.
How to Uninstall Node and NPM
You can uninstall Node.js and NPM the same way you would any piece of software on Windows. Open “Programs and Features” within the Control Panel:
Select “Node.js” from the list of programs and click the Uninstall button at the top of the screen: