PS E:\Vue-Devtools> npm install -g @vue/devtools npm ERR! code 1 npm ERR! path D:\nodejs\node_global\node_modules\@vue\devtools\node_modules\electron npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install.js npm ERR! RequestError: read ECONNRESET npm ERR! at ClientRequest.<anonymous> (D:\nodejs\node_global\node_modules\@vue\devtools\node_modules\got\source\request-as-event-emitter.js:178:14) npm ERR! at Object.onceWrapper (node:events:628:26) npm ERR! at ClientRequest.emit (node:events:525:35) npm ERR! at ClientRequest.origin.emit (D:\nodejs\node_global\node_modules\@vue\devtools\node_modules\@szmarczak\http-timer\source\index.js:37:11) npm ERR! at TLSSocket.socketErrorListener (node:_http_client:481:9) npm ERR! at TLSSocket.emit (node:events:513:28) npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8) npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3) npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) npm ERR! A complete log of this run can be found in: npm ERR! D:\nodejs\node_cache\_logs\2023-06-05T06_47_24_347Z-debug.log PS E:\Vue-Devtools>
时间: 2023-09-11 16:10:28 浏览: 260
安装vue-devtools时,npm install总是报错的解决方案
看起来你在安装 Vue.js 的开发者工具时遇到了错误,具体错误信息是 "RequestError: read ECONNRESET",看起来是网络连接的问题。你可以尝试重新运行命令,或者检查你的网络连接是否正常。如果问题仍然存在,可以查看完整的错误日志(在 "D:\nodejs\node_cache\_logs\2023-06-05T06_47_24_347Z-debug.log" 中)以获取更多信息。
阅读全文