奇奇怪怪的npm依赖安装出错之死马当活马医大法

没有更好的包管理工具出现前应该会持续更新~~

  • 删除node_modules文件夹
  • 换源:
npm config set registry https://registry.npm.taobao.org

yarn config set registry https://registry.npm.taobao.org
  • node-sass: Command failed 的报错将 sass-binary-site 添加至 config 中:
 yarn config set sass-binary-site https://npm.taobao.org/mirrors/node-sass
 npm config set sass-binary-site https://npm.taobao.org/mirrors/node-sass

你可能感兴趣的:(踩坑,node,项目管理)