Node 的官方模块仓库网速太慢,模块仓库切换到阿里的镜像。
查看本地镜像源
npm config get registry
执行以下命令更改:
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
或者使用
npm config set registry https://registry.npm.taobao.org/