Use nvm to install node but it cannot be detected in the terminal

Description of the problem :
When using nvm to install node, nvm lsthe list of installed nodes can be displayed by using the command, and nvm usethe node version can also be specified by using the command, but in the end neither the terminal nor git can detect node.

Solution :
Node needs to configure environment variables.

Steps :
① First, enter "win+R" to open the run box.
② Then enter the command in it: control system, press Enter
③ Enter the advanced system settings in the search box, and click enter, click the environment variable in the pop-up box, as shown in the figure below:
insert image description here
④ Find the part of the variable circled in the picture below and modify the path to the one you installed nvm, nodejs path, and then click save, then node can be used normally.
insert image description here

Guess you like

Origin blog.csdn.net/weixin_52797317/article/details/129709740
Recommended