001 nodejs installation under wiondows

1. First go to the nodejs official website to download the installation package: Node.js

Here we choose to download the long-term support version, that is, the LTS version. If the official website is slow to open, you can download it from the nodejs Chinese website: http://nodejs.cn/download/

Choose the appropriate download version

Double-click the downloaded msi file to run.

Click next to take the next step

Check the box to agree to the agreement and click Next

You can modify the path, or use the default path on the c drive.

It is recommended to keep the default for the next step

This check mark means to install some other ancillary software. We can choose not to check it. If it is checked, it will take longer.

Click install to install

Wait a moment, the installation will be completed immediately

The installation is complete

After the installation is completed, one will be automatically added to the environment variable Path , so please ensure that there are not too many environment variables in Path, otherwise it will not be automatically added. If you encounter the problem that the environment variable exceeds 2047 bytes, you can choose to change the above Remove the redundancy

Next open the cmd command window to check whether the installation is successful.

Use the win logo key plus the r key to open run and enter cmd

After opening the command prompt window, enter node -v and npm -v to check the nodejs version and npm version number. If it comes out normally, it means there is no problem and the installation is successful.

If there is no such command after opening the command prompt window and entering the command prompt, check whether the environment variable in the previous step was automatically added. If not, you can also manually add the root path of nodejs.

Guess you like

Origin blog.csdn.net/qq_45477065/article/details/126893756