The first step is to install nodejs
https://nodejs.org/en/download/
This is the official website of nodejs. Since the operating system is win7 64-bit, I downloaded the node-v8.11.1-x64 version. Linux students, please ignore this article.
Be sure to select all components during installation, including ticks Add to Path
. As shown below
At this point, we can notice the installation options in the above picture, the second is the npm package, which is used to manage various plug-ins required in nodejs development. Similar to Nuget in vs. It needed to be installed separately before, but now it has been integrated into the installation package, and no additional installation is required.
Then click "Next" all the way, after completion, use the cmd command to open the command prompt
Enter node -v
, and if the installation went fine, you should see the version number "v8.11.1". As shown below
At this point, the nodejs installation is complete.