mac装机系列:安装nvm

github

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

将以下代码添加到 .bash_profile 中

export NVM_DIR="$([ -z "${
    
    XDG_CONFIG_HOME-}" ] && printf %s "${
    
    HOME}/.nvm" || printf %s "${
    
    XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
source .bash_profile

猜你喜欢

转载自blog.csdn.net/weixin_43972437/article/details/123191782