Browse Source

docs: 更新 nodejs 安装指南,修改 nvm 安装脚本的下载链接和环境变量设置

master
qinjian 1 month ago
parent
commit
3e6158fc8c
  1. 4
      README.md

4
README.md

@ -19,7 +19,9 @@
```shell
sudo su -
# 安装 nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
export NVM_NODEJS_ORG_MIRROR=https://npmmirror.com/mirrors/node
export NVM_INSTALL_GITHUB_REPO="https://ghproxy.com/https://github.com/nvm-sh/nvm"
curl -o- https://ghproxy.com/https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
source ~/.bashrc
nvm install 20
nvm use 20

Loading…
Cancel
Save