最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

无法安装电子装置“无法建立隧道插座”

运维笔记admin21浏览0评论

无法安装电子装置“无法建立隧道插座”

无法安装电子装置“无法建立隧道插座”

我正在尝试使用以下命令在Windows 10上安装Electron:

- git clone 
- cd electron-quick-start
- npm install
- npm start

我已经设置了环境变量

USERPROFILE%/AppData/Roaming/npm/node_modules/@angular/cli/bin

%USERPROFILE%/AppData/Roaming/npm

我正在遵循此site的脚步,但是在给npm install时仍会出现这些错误。

错误:
PS C:\Users\PC\Desktop\project\electron-quick-start> npm install

> [email protected] postinstall C:\Users\PC\Desktop\project\electron-quick-start\node_modules\electron
> node install.js

Downloading tmp-15380-0-electron-v6.0.11-win32-x64.zip
Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80
C:\Users\PC\Desktop\project\electron-quick-start\node_modules\electron\install.js:49
  throw err
  ^

Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80
    at ClientRequest.onError (C:\Users\PC\Desktop\project\electron-quick-start\node_modules\tunnel-agent\index.js:177:17)
    at Object.onceWrapper (events.js:286:20)
    at ClientRequest.emit (events.js:198:13)
    at Socket.socketErrorListener (_http_client.js:392:9)
    at Socket.emit (events.js:198:13)
    at emitErrorNT (internal/streams/destroy.js:91:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, scandir 'C:\Users\PC\Desktop\project\electron-quick-start\node_modules\sumchecker\node_modules'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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!     C:\Users\PC\AppData\Roaming\npm-cache\_logs\2019-10-08T15_02_16_542Z-debug.log
PS C:\Users\PC\Desktop\project\electron-quick-start>

这里是生成的log

到目前为止,我使用的节点是最新的版本10.16.3

和npm 6.11.3

我应如何解决此错误?

[我正在尝试使用以下命令在Windows 10上安装Electron:-git clone electronic-quick-start-npm install-npm start我已经设置了...

回答如下:

尝试以下内容:

发布评论

评论列表(0)

  1. 暂无评论