1、切换至国内镜像源: // 淘宝最新镜像 $ npm config set registry https://registry.npmmirror.com 2、显示详细日志以定位问题: $ npm install –verbose 3、清理缓存并重新尝试安装 $ npm cache clean –force 文章导航 uniapp项目拷贝到其他电脑后启动报错 invalid json response body at https://npmmirror.com/vue-i18n reason: Unexpected token ‘<', "