Current location - Quotes Website - Collection of slogans - How to install the node environment
How to install the node environment
Download nodejs environment installation package of windows platform, Baidu official website nodejs, find the download, and click to find Windows Installer. If it is a 64-bit computer, you can choose the 64-bit version. Click download.

2

Install the windows version of nodejs, click the downloaded file to install it, then click Next, then choose to agree to the installation agreement, then click Next, and then you can customize the default installation directory C:\Program Files\nodejs\, then click Next to install all components by default, then click Next, then click Install Wait, and then click Finish to complete the installation.

three

Write the test file test.js here, and let's put it under the D disk demonstration first.

In the var mand prompt command window, enter CD c: \ program files \ nodejs \ node _ modules \ NPM \ test to enter the directory, and then enter node test.js?

Type nodetest.js

Then the browser opens http:/127.0.0.1:8899/,and you can see the output of test nodjs. The environment was successfully installed and configured.