npm安装时卡在sill idealTree buildDeps,npm安装速度慢,npm安装卡在一个地方不动

造成上述问题的原因是因为node的默认安装环境在国外,访问速度慢就会卡住。

解决方法一:

1、采用taobao的镜像地址,进入cmd之后输入:

npm config set registry https://registry.npm.taobao.org 

2、查看是否安装成功:

npm config get registry 

3、继续输入之前的npm install 命令进行安装。

npm install

解决方法二:

输入命令:

cnpm install

猜你喜欢

转载自blog.csdn.net/ramblerviper/article/details/125155254