错误:
- npm install一直停留在fetchMetadata: sill mapToRegistry uri http://registry.npmjs.org/whatwg-fetch可以使用如下命令设置为淘宝的镜像源:
npm config set registry https://registry.npmmirror.com
- 使用如下命令检验是否成功
npm config get registry
- 继续运行
npm install
原文地址:https://blog.csdn.net/weixin_46182244/article/details/121302702