# npm使用国内镜像

# 配置命令

npm config set registry https://registry.npm.taobao.org

# 验证配置

npm config get registry

# 安装cnpm

也可以安装cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

# 还原为默认库

npm config set registry https://registry.npmjs.org/
Last Updated: 2022/11/13 12:30:47