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.