1.设置镜像源
npm config set registry https://registry.npmmirror.com
2.查看当前镜像源
npm config get registry
3.替换成功,在项目根目录打开命令窗口
npm install vconsole
4.在main.js引入
/*引入,注释可关闭*/
import vconsole from "vconsole";
Vue.prototype.vconsole = new vconsole();