问题描述
我正在尝试使用 NPM 安装 Windows-Build-Tools。 但是,当我运行以下命令时,出现错误:
npm install --global --production windows-build-tools
完整输出
C:\WINDOWS\system32> npm install --global --production windows-build-tools
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
> windows-build-tools@5.2.2 postinstall C:\Users\hp\AppData\Roaming\npm\node_modules\windows-build-tools
> node ./dist/index.js
Downloading python-2.7.15.amd64.msi
Error: aborted
Downloading Python Failed. Error: Error: aborted
at connResetException (node:internal/errors:631:14)
at TLSSocket.socketCloseListener (node:_http_client:438:27)
at TLSSocket.emit (node:events:388:22)
at node:net:666:12
at TCP.done (node:_tls_wrap:573:7) {
code: 'ECONNRESET'
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)