Description of the problem :
When using nvm to install node, nvm ls
the list of installed nodes can be displayed by using the command, and nvm use
the 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:
④ 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.