In the Windows environment, build the Nodejs+Express+Ejs framework from scratch (1) --- Install nodejs

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.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325113479&siteId=291194637