[vue]nvm安装

下载地址

https://github.com/nvm-sh/nvm/archive/refs/tags/v0.38.0.tar.gz

tar zxvf nvm-0.38.0.tar.gz
mv nvm-0.38.0 /usr/local/
ln -s /usr/local/nvm-0.38.0 ~/.nvm
cat >> ~/.bashrc <'EOF'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# 国内源
export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
EOF
source ~/.bashrc

[root@vue ~]# nvm --version
0.38.0
posted @ 2021-05-22 00:21  LeoShi2020  阅读(122)  评论(0编辑  收藏  举报