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
本文介绍了如何通过删除.npmrc文件、验证npm缓存并设置镜像源(如npmmirror.com或npm.taobao.org)来优化Node.js项目的依赖管理。还提及了使用cnpm作为替代方案。
3754

被折叠的 条评论
为什么被折叠?



