npm install > grpc@1.21.1 install /home/book/odas_web/node_modules/grpc > node-pre-gyp install --fallback-to-build --library=static_library node-pre-gyp WARN Using request for node-pre-gyp https download [grpc] Success: "/home/book/odas_web/node_modules/grpc/src/node/extension_binary/node-v72-linux-x64-glibc/grpc_node.node" is installed via remote > protobufjs@6.8.8 postinstall /home/book/odas_web/node_modules/protobufjs > node scripts/postinstall > electron@5.0.3 postinstall /home/book/odas_web/node_modules/electron > node install.js Downloading tmp-7711-0-electron-v5.0.3-linux-x64.zip Error: read ECONNRESET /home/book/odas_web/node_modules/electron/install.js:49 throw err ^ Error: read ECONNRESET at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20) { errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! electron@5.0.3 postinstall: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the electron@5.0.3 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/book/.npm/_logs/2023-07-09T11_52_03_599Z-debug.log
时间: 2024-02-05 11:02:45 浏览: 130
根据你提供的日志信息,出现了一些错误。
首先,npm 安装 grpc 时成功安装了 grpc_node.node。
其次,npm 安装 protobufjs 时成功执行了 postinstall 脚本。
然后,npm 安装 electron 时出现了错误,报告了一个 ECONNRESET 错误。
根据错误信息,这可能是一个网络连接问题。尝试重新运行 npm install 命令,看看问题是否可以解决。如果问题仍然存在,***
阅读全文