node.js environment variable configuration

1. Download node.ims or node.exe or node.zip

1. node download address
2. Install or unzip to the specified directory, and then create two empty folders node-cache and node-global
such as:

2. Configure environment variables

1. Open advanced system settings, click Environment Variables, edit system variables without editing user variables, click New. The variable value is the node directory you installed.
Insert image description here
Insert image description here
2. Double-click the path variable of the system variable and add:

%NODE_HOME%
%NODE_HOME%node-global
%NODE_HOME%node-cache

Insert image description here
Insert image description here
3. After clicking OK, enter cmd with win+r, and then enter the content as shown in the picture:
Insert image description here
4. If the version number as shown in the picture above cannot be output, go to bilibili to search how to configure the node environment variable.

Guess you like

Origin blog.csdn.net/m0_67982986/article/details/133185633