运行npm install 时,卡在sill idealTree buildDeps没有反应

遇到的问题:idealTree:x-admin-web: sill idealTree buildDeps

1、运行npm install 时,卡在sill idealTree buildDeps没有反应
npm install一直停留在fetchMetadata: sill mapToRegistry uri http://registry.npmjs.org/whatwg-fetch

2、首先使用如下命令设置为淘宝的镜像源:
npm config set registry https://registry.npm.taobao.org

3、然后使用如下命令检验是否成功:
npm config get registry

输出淘宝镜像路径

4、最后重新安装运行
npm install

最后便可以解决问题,成功安装。

猜你喜欢

转载自blog.csdn.net/weixin_52060913/article/details/130072613