怎么解决Electron7安装失败问题-创新互联

怎么解决Electron 7安装失败问题?相信很多人对此束手无策,这篇文章介绍了Electron 7安装失败的解决方法,希望你能借助这篇文章完美解决这个问题。

公司主营业务:成都网站制作、做网站、外贸营销网站建设、移动网站开发等业务。帮助企业客户真正实现互联网宣传,提高企业的竞争能力。创新互联公司是一支青春激扬、勤奋敬业、活力青春激扬、勤奋敬业、活力澎湃、和谐高效的团队。公司秉承以“开放、自由、严谨、自律”为核心的企业文化,感谢他们对我们的高要求,感谢他们从不同领域给我们带来的挑战,让我们激情的团队有机会用头脑与智慧不断的给客户带来惊喜。创新互联公司推出萝北免费做网站回馈大家。
> electron@7.1.10 postinstall /Users/key/Source/WebStormProjects/hdi-manager/node_modules/electron
> node install.js

(node:34913) UnhandledPromiseRejectionWarning: HTTPError: Response code 404 (Not Found)
   at EventEmitter.emitter.on.response (/Users/key/Source/WebStormProjects/hdi-manager/node_modules/got/source/as-stream.js:35:24)
   at EventEmitter.emit (events.js:198:13)
   at module.exports (/Users/key/Source/WebStormProjects/hdi-manager/node_modules/got/source/get-response.js:22:10)
   at ClientRequest.handleResponse (/Users/key/Source/WebStormProjects/hdi-manager/node_modules/got/source/request-as-event-emitter.js:155:5)
   at Object.onceWrapper (events.js:286:20)
   at ClientRequest.emit (events.js:203:15)
   at ClientRequest.origin.emit.args [as emit] (/Users/key/Source/WebStormProjects/hdi-manager/node_modules/@szmarczak/http-timer/source/index.js:37:11)
   at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21)
   at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
   at TLSSocket.socketOnData (_http_client.js:442:20)
(node:34913) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:34913) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
npm WARN hdi-manager@1.0.0 No repository field.

无奈~只有看看源码为啥不行了!发现:Electron 7.0.0以后的版本下载地址多了个字母v,然后安装下载的时候就会404...

解决方法:

npm install -g cross-env
cross-env npm_config_electron_mirror="https://npm.taobao.org/mirrors/electron/" npm_config_electron_custom_dir="7.1.10" npm install

关于Electron 7安装失败的解决方法就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。

分享标题:怎么解决Electron7安装失败问题-创新互联
网页URL:https://www.cdcxhl.com/article6/digeog.html

成都网站建设公司_创新互联,为您提供面包屑导航商城网站搜索引擎优化网站维护建站公司静态网站

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

h5响应式网站建设