项目场景:
系统版本:macOS Monterey 12.3
vue版本:8.5.0
问题描述
使用命令行启动vue,运行npm install 时,卡在sill idealTree buildDeps
没有反应。
解决方案:
1.使用如下命令设置为淘宝的镜像源:
npm config set registry https://registry.npm.taobao.org
2.使用如下命令检验是否成功:成功应该输出的是淘宝镜像路径https://registry.npm.taobao.org
npm config get registry
3.继续运行
npm install
就应该能重新运行啦…