nvm installation node failure problem record

1. The installation of node by nvm is unsuccessful. The nvm list can find the version but the version number of nvm use shows that the version is not installed successfully. Solution:

In the nvm installation nvm directory, modify the settings.txt configuration file, and add the Taobao mirror download address to the file:

node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

2. After installing nvm, use nvm to install node successfully, set the version to use, and then query the node version, an error is reported: 'node' is not an internal or external command, nor is it an operable program or batch file.

The program is because I have installed node before installing nvm, so it may be caused by environment variable conflicts. Normal installation of nvm will automatically set the environment variables. My solution is to uninstall the node.js and nvm programs in the program panel, then reinstall nvm and set the Taobao mirror, and then use nvm to install node.

Nvm common commands:

Get all installable node versions
nvm list available       

Query the installed node version
nvm list           

Install the specified version of Node.js
nvm install 10.11.0

Specify the current version of Node.js to be used, and only after the specified version of Node.js is used, nodejs is actually installed.
nvm use 10.11.0

Uninstall a Node.js version
nvm uninstall 10.11.0

Guess you like

Origin blog.csdn.net/xxfen_/article/details/128159806