国内源安装
1、从 gitee 镜像下载 nvm 安装脚本(国内可访问)
curl -o- https://gitee.com/mirrors/nvm/raw/v0.40.3/install.sh | bash
2、 立即加载 nvm
\. "$HOME/.nvm/nvm.sh"
3、下载Node.js:
nvm install 24
4、npm换源
npm config set registry https://registry.npmmirror.com
1、从 gitee 镜像下载 nvm 安装脚本(国内可访问)
curl -o- https://gitee.com/mirrors/nvm/raw/v0.40.3/install.sh | bash
2、 立即加载 nvm
\. "$HOME/.nvm/nvm.sh"
3、下载Node.js:
nvm install 24
4、npm换源
npm config set registry https://registry.npmmirror.com