本文介绍: 【代码】npm源更换、卡住解决方式。

sill idealTree buildDeps解决方案

1. 删除用户C:Users{账户}下的.npmrc文件
2. npm cache verify
3. npm config set registry https://registry.npmmirror.com

更换镜像源

//任选其一
npm config set registry https://registry.npmmirror.com
npm config set registry https://registry.npm.taobao.org

如果不想更换npm源可以设置cnpm

npm install -g cnpm --registry=https://registry.npmmirror.com

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注