### 编辑 .bash_profile 文件
vim ~/.bash_profile
### 修改 bash_profile文件
export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node/
### 更新生效 bash_profile文件
source ~/.bash_profile
### zsh用户需单独修改一下.zshrc文件
vim ~/.zshrc
export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node/
### 更新生效zshrc文件
source ~/.zshrc
vim命令百度下就有
操作完就可以正常使用nvm