// 1. 清空缓存
npm cache clean --force
// 2. 切换新源
npm config set registry https://registry.npmmirror.com
// 3. 查看源是否设置成功
npm config get registry
// 4. 可以正常安装需要的工具了npm insatll xxx
npm install报错ERR code ETIMEDOUT的解决办法
最新推荐文章于 2024-11-14 13:56:04 发布