Windows local deployment of Easy Mock (1) nvm installation and configuration

Windows local deployment of Easy Mock (1) nvm installation and configuration


nvm: a tool for node version management

Installation Notes:

download

  • nvm official download address: https://github.com/coreybutler/nvm-windows/releases, download nvm-setup.zip and install after decompression
  • Link: https://pan.baidu.com/s/1rs5DvoTUxhsJSd5tOOiASA Extraction code: 9fkv

Installation notes

  • Do not have Chinese and spaces in the nvm installation directory

Insert picture description here

  • Do not have Chinese characters and spaces in the directory where you are going to install node

Insert picture description here

Confirm after installation

nvm -v

Insert picture description here
At this point, the nvm installation is complete

If the following situation occurs, you need to configure environment variables
Insert picture description here

Nvm environment variable configuration

This computer-"Properties-"Advanced System Configuration-"Environmental Variables

Add two environment variables

  • NVM_HOME: The directory where nvm is installed (D:\nvm)
  • NVM_SYMLINK: The directory where node is to be installed (D:\nvm\nodejs)
    Insert picture description here
  • Add the two just added in Path and
    Insert picture description here
    click OK after adding it, and finally reconfirm nvm -v

Guess you like

Origin blog.csdn.net/huangge1199/article/details/108148789