1. 使用默认镜像
你可以将镜像源设置为默认的 npm 镜像源:
npm config set registry https://registry.npmjs.org/
或者,你也可以将镜像源删除,让 npm 使用默认的镜像源:
npm config delete registry
2. 改为新的淘宝镜像
如果你仍然希望使用淘宝镜像,可以将镜像源设置为新的淘宝镜像源:
npm config set registry https://registry.npmmirror.com
通过以上两种方法之一,你应该能够成功解决在 Vue 项目中执行 npm install 时卡在"sill idealTree buildDeps"的问题。
原文链接:https://blog.csdn.net/PengXing_Huang/article/details/136460133