Linux or MacOS nvm 安装

first step

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash

second step

export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"

third step

[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm

if curl fail, your need to add nvm host

  • open hosts

sudo vim /etc/hosts

  • append

199.232.96.133 raw.githubusercontent.com

reference

  • https://github.com/nvm-sh/nvm#git-install
© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
none
暂无评论...