The following link is to the NVM git repository github.com/nvm-sh/nvm

MAC open terminal copy following the first command installation

If there is aurl: (7) Failed to connect to raw.githubusercontent.com port 443If an error occurs, please refer to the following article

Juejin. Cn/post / 697733…

If the hosts file is locked and cannot be modified, refer to this section

  1. Move the hosts file to the desktop

  2. Refer to the above link to modify and move back to replace the file

And then if there’s an error. Try to create a. ZSHRC file locally on the terminal.

Enter the command touch.zshrc to create the file.

Open. ZSHRC opens the file.

Copy the second command above and save.

Check whether the NVM is successfully installed.

If an error occurs while installing the specified Node version

Consult link stackoverflow.com/questions/6…