1. Download Node.js from the official source
2. Install Node.js
The next step is to run the file you downloaded from the official Node.js page. When running it, simply follow the typical step-by-step installation process for any application on Windows (next, next, next).
3. Open the command line
Once you have installed Node.js, open the command line on your computer. You can do this by clicking the Start button, typing "cmd" in the search, and pressing Enter.
4. Verify the installation of npm and Node
To check if Node.js and npm are installed correctly, type the following command in the cmd terminal:
If the installation was successful, you will see a message displaying the current version of both npm and Node.
5. Optional - Install the latest version of npm
When you download and install Node, it comes with a pre-set version of npm. If you want to install the latest version of npm, you should run the following command in your terminal.
npm install npm@latest -g