用get命令查看registry
npm config get registry
如果是如下结果,就说明是国外镜像,慢就对了
https://registry.npmjs.org/
通过以下命令改成阿里镜像:
npm config set registry https://registry.npm.taobao.org
重新npm install就可以了
用get命令查看registry
npm config get registry
如果是如下结果,就说明是国外镜像,慢就对了
https://registry.npmjs.org/
通过以下命令改成阿里镜像:
npm config set registry https://registry.npm.taobao.org
重新npm install就可以了
5472

被折叠的 条评论
为什么被折叠?