nvm install

1. Download the installation package, address: https://github.com/coreybutler/nvm-windows

2. After decompression, click nvm-setup to install, all the way to install by default, next

3. Open the installation location, then run the install.cmd file as an administrator, set the file path (my paths are all automatically generated), and the user variables are also automatically configured when running install.cmd (I am automatically good of). as follows:

  NVM_HOME = C: \ nvm      
  NVM_SYMLINK = C: \ nodejs  
  Path =% NVM_HOME%;% NVM_SYMLINK%

4. Then just run the node version you want to install in the console, command: nvm install node version number, for example: nvm install 8.9.0

5. After successful installation through nvm

6. Execute nvm use the node you installed

7. Verify: node -v to see if node is ok, npm -v to see if npm is ok

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324736480&siteId=291194637
NVM