一、下载安装Node.js,打开命令提示符输入如下命令查看当前镜像
npm config get registry
如果使用默认官方镜像,会返回:
https://registry.npmjs.org/
二、将镜像源切换为 npmmirror ,命令如下:
npm config set registry https://registry.npmmirror.com/
一、下载安装Node.js,打开命令提示符输入如下命令查看当前镜像
npm config get registry
如果使用默认官方镜像,会返回:
https://registry.npmjs.org/
二、将镜像源切换为 npmmirror ,命令如下:
npm config set registry https://registry.npmmirror.com/