1、查看镜像地址:

        打开项目,输入命令:npm config get registry

        出现红色框部分即为当前的镜像地址

2、修改镜像地址:

        输入命令:npm config set registry https://registry.npmmirror.com/

        https://registry.npmmirror.com/    ----- 这个地址即为要修改变成的国内镜像地址

3、再次输入命令:npm config get registry

        出现

表示当前镜像已经变为国内镜像,后续用  NPM 时下载速度会大大提高。

Logo

基于 Vue 的企业级 UI 组件库和中后台系统解决方案,为数万开发者服务。

更多推荐