Installing Node.js and NPM on Windows
To install Node.js and NPM on Windows:
1. Download the Windows installer from the Nodes.js website. It will be a .msi file.
2. Run the file you downloaded in step 1.
3. Follow the installer prompts – accept the license agreement, and accept the default installation settings.
4. Restart your computer as you normally would.
Now you can make sure you have Node.js and NPM installed by running simple commands.
Test Node: Open your command line tool, and type node -v. This will print the version of Node.js you’ve downloaded.
Test NPM: To make sure NPM is installed, type npm -v in your terminal. This will print NPM’s version number.
Create a test file and run it.
To update to a newer version of Node.js or NPM, simply download the installer and run it again. The new version will automatically replace the old one.
You can uninstall Node.js just as you would any other software in Windows:
Open the Windows Control Panel, and choose the “Programs and Features” option.
Click the “Uninstall a program” option
Select Node.js, and click the Uninstall link.