npm i 安装问题

136 阅读1分钟

项目中使用 npm install 下载依赖时卡顿解决办法:

  1. 下载淘宝镜像命令
npm config set registry https://registry.npmmirror.com
  1. 清理缓存并重新安装
npm cache clean --force
npm install
  1. 更新npm 版本
npm install -g npm