真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

Electron7.1.10迷之安裝失敗-創(chuàng)新互聯(lián)

最近遇到一個(gè)問題。那就是macOS插上NTFS格式的移動(dòng)硬盤無法讀寫,然后發(fā)現(xiàn)有的文件系統(tǒng)提示被macOS占用無法打開,每次要執(zhí)行命令手動(dòng)掛載...然后對于懶癌的我是無法接受的,因此萌生了用Electron開發(fā)一個(gè)小工具,由于之前用的electron-vuw,內(nèi)置的是Electron 2.x的版本,不支持macOS黑暗模式,準(zhǔn)備嘗試使用Electron 7.x,發(fā)現(xiàn)是各種安裝不上了啊?。?/p>

成都創(chuàng)新互聯(lián)公司專注于綏江網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗(yàn)。 熱誠為您提供綏江營銷型網(wǎng)站建設(shè),綏江網(wǎng)站制作、綏江網(wǎng)頁設(shè)計(jì)、綏江網(wǎng)站官網(wǎng)定制、小程序設(shè)計(jì)服務(wù),打造綏江網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供綏江網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。
> 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.

無奈~只有看看源碼為啥不行了!發(fā)現(xiàn):Electron 7.0.0以后的版本下載地址多了個(gè)字母v,然后安裝下載的時(shí)候就會(huì)404...

解決方法:

npm install -g cross-env
cross-env npm_config_electron_mirror="/tupian/20230521/binary.html" npm_config_electron_custom_dir="7.1.10" npm install

然后就OK了!


本文標(biāo)題:Electron7.1.10迷之安裝失敗-創(chuàng)新互聯(lián)
本文路徑:http://weahome.cn/article/dchhoi.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部