方法1:https://github.com/仓库地址 变成 https://github.com.cnpmjs.org/仓库地址
方法2:使用gitee仓库,创建一个项目,导入远程项目的代码。然后本地从gitee拉代码。
npm install使用国内源
npm config set registry https://registry.npm.taobao.org
npm config ls -l查看配置信息
方法1:https://github.com/仓库地址 变成 https://github.com.cnpmjs.org/仓库地址
方法2:使用gitee仓库,创建一个项目,导入远程项目的代码。然后本地从gitee拉代码。
npm install使用国内源
npm config set registry https://registry.npm.taobao.org
npm config ls -l查看配置信息
评论区