electron安装报错
npm install electron -d
npm info using npm@10.8.2
npm info using node@v16.20.2
npm warn cli npm v10.8.2 does not support Node.js v16.20.2. This version of npm supports the following node versions: `^18.17.0 || >=20.5.0`. You can find the latest version at https://nodejs.org/.
npm http fetch GET 200 https://registry.npmjs.org/xlsx 828ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/electron 224ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/extract-zip 237ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/word 813ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@types%2fnode 829ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/crc-32 957ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/codepage 957ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/cfb 962ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ssf 963ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/adler-32 963ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@electron%2fget 968ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/wmf 970ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/fs-extra 257ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/debug 262ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/debug 262ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/env-paths 269ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/undici-types 270ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/global-agent 272ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/progress 275ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/semver 278ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/sumchecker 282ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/got 287ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@types%2fyauzl 818ms (cache revalidated)npm http fetch GET 200 https://registry.npmjs.org/get-stream 832ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/yauzl 850ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/responselike 395ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/universalify 407ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/ms 414ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/matcher 411ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/http2-wrapper 410ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/jsonfile 424ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/p-cancelable 419ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/graceful-fs 428ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/lowercase-keys 421ms (cache revalidated)npm http fetch GET 200 https://registry.npmjs.org/roarr 431ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/boolean 441ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/serialize-error 449ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/cacheable-request 231ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@types%2fresponselike 255ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/decompress-response 257ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@types%2fcacheable-request 250ms (cache
revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@szmarczak%2fhttp-timer 256ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/es6-error 902ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/cacheable-lookup 978ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@sindresorhus%2fis 992ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/buffer-crc32 217ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/pump 221ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/fd-slicer 225ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/once 219ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 269ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/wrappy 214ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/frac 205ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/pend 202ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/globalthis 214ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/json-stringify-safe 214ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/escape-string-regexp 218ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/sprintf-js 223ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/type-fest 222ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/semver-compare 231ms (cache revalidated)npm http fetch GET 200 https://registry.npmjs.org/detect-node 733ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/mimic-response 218ms (cache revalidated)npm http fetch GET 200 https://registry.npmjs.org/http-cache-semantics 222ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@types%2fkeyv 229ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/defer-to-connect 231ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/keyv 233ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/quick-lru 235ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/clone-response 239ms (cache revalidated)npm http fetch GET 200 https://registry.npmjs.org/resolve-alpn 238ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/normalize-url 243ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@types%2fhttp-cache-semantics 685ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/json-buffer 215ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/define-properties 209ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/gopd 214ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/define-data-property 208ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/object-keys 219ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/has-property-descriptors 225ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/es-errors 211ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/es-define-property 212ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/es-define-property 224ms (cache revalidated)
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 275msnpm warn deprecated boolean@3.2.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm http fetch GET 200 https://registry.npmjs.org/xlsx 251ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/electron 261ms (cache revalidated)
npm info run electron@25.9.8 postinstall node_modules/electron node install.js
npm info run electron@25.9.8 postinstall { code: 1, signal: null }
npm warn cleanup Failed to remove some directories [
npm warn cleanup [
npm warn cleanup 'C:\\Users\\vking\\Desktop\\助手服务合集\\print\\node_modules\\@electron\\get',
npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\vking\Desktop\助手服务合集\print\node_modules\@electron\get\node_modules\global-agent\node_modules'] {
npm warn cleanup errno: -4048,
npm warn cleanup code: 'EPERM',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: 'C:\\Users\\vking\\Desktop\\助手服务合集\\print\\node_modules\\@electron\\get\\node_modules\\global-agent\\node_modules'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup 'C:\\Users\\vking\\Desktop\\助手服务合集\\print\\node_modules\\@electron\\get\\node_modules\\global-agent',
npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\vking\Desktop\助手服务合集\print\node_modules\@electron\get\node_modules\global-agent\node_modules'] {
npm warn cleanup errno: -4048,
npm warn cleanup code: 'EPERM',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: 'C:\\Users\\vking\\Desktop\\助手服务合集\\print\\node_modules\\@electron\\get\\node_modules\\global-agent\\node_modules'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup 'C:\\Users\\vking\\Desktop\\助手服务合集\\print\\node_modules\\@electron\\get',
npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\vking\Desktop\助手服务合集\print\node_modules\@electron\get\node_modules\got\dist'] {
npm warn cleanup errno: -4048,
npm warn cleanup code: 'EPERM',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: 'C:\\Users\\vking\\Desktop\\助手服务合集\\print\\node_modules\\@electron\\get\\node_modules\\got\\dist'
npm warn cleanup }
npm warn cleanup ]
npm warn cleanup ]
npm error code 1
npm error path C:\Users\vking\Desktop\助手服务合集\print\node_modules\electron
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node install.js
npm error RequestError: Hostname/IP does not match certificate's altnames: Host: npm.taobao.org. is not in the cert's altnames: DNS:*.tbcdn.cn, DNS:*.1688.com, DNS:*.3c.tmall.com,
DNS:*.alibaba.com, DNS:*.alicdn.com, DNS:*.aliexpress.com, DNS:*.alikunlun.com, DNS:*.aliqin.tmall.com, DNS:*.alitrip.com, DNS:*.aliyun.com, DNS:*.cainiao.com, DNS:*.cainiao.com.cn, DNS:*.chi.taobao.com, DNS:*.chi.tmall.com, DNS:*.china.taobao.com, DNS:*.cloudvideocdn.taobao.com, DNS:*.cmos.greencompute.org, DNS:*.dingtalk.com, DNS:*.django.t.taobao.com, DNS:*.etao.com, DNS:*.feizhu.cn, DNS:*.feizhu.com, DNS:*.fliggy.com, DNS:*.fliggy.hk, DNS:*.food.tmall.com, DNS:*.jia.taobao.com, DNS:*.jia.tmall.com, DNS:*.ju.taobao.com, DNS:*.juhuasuan.com, DNS:*.lw.aliimg.com, DNS:*.m.1688.com, DNS:*.m.alibaba.com, DNS:*.m.alitrip.com, DNS:*.m.cainiao.com, DNS:*.m.etao.com, DNS:*.m.taobao.com, DNS:*.m.taopiaopiao.com, DNS:*.m.tmall.com, DNS:*.m.tmall.hk, DNS:*.mei.com, DNS:*.mobgslb.tbcache.com, DNS:*.taobao.com, DNS:*.taopiaopiao.com, DNS:*.tbcache.com, DNS:*.tmall.com, DNS:*.tmall.hk, DNS:*.trip.taobao.com, DNS:*.xiami.com, DNS:1688.com, DNS:alibaba.com, DNS:alicdn.com, DNS:aliexpress.com, DNS:alikunlun.com, DNS:alitrip.com, DNS:aliyun.com, DNS:cainiao.com, DNS:cainiao.com.cn, DNS:cloudvideocdn.taobao.com, DNS:cmos.greencompute.org, DNS:dingtalk.com, DNS:etao.com, DNS:feizhu.cn, DNS:feizhu.com, DNS:fliggy.com, DNS:fliggy.hk, DNS:juhuasuan.com, DNS:m.intl.taobao.com, DNS:mei.com, DNS:taobao.com, DNS:taopiaopiao.com, DNS:tmall.com, DNS:tmall.hk, DNS:xiami.com, DNS:tbcdn.cn
npm error at ClientRequest.<anonymous> (C:\Users\vking\Desktop\助手服务合集\print\node_modules\@electron\get\node_modules\got\dist\source\core\index.js:970:111)
npm error at Object.onceWrapper (node:events:628:26)
npm error at ClientRequest.emit (node:events:525:35)
npm error at ClientRequest.origin.emit (C:\Users\vking\Desktop\助手服务合集\print\node_modules\@szmarczak\http-timer\dist\source\index.js:43:20)
npm error at TLSSocket.socketErrorListener (node:_http_client:494:9)
npm error at TLSSocket.emit (node:events:513:28)
npm error at emitErrorNT (node:internal/streams/destroy:157:8)
npm error at emitErrorCloseNT (node:internal/streams/destroy:122:3)
npm error at processTicksAndRejections (node:internal/process/task_queues:83:21)
npm error at new NodeError (node:internal/errors:387:5)
npm error at Object.checkServerIdentity (node:tls:354:12)
npm error at TLSSocket.onConnectSecure (node:_tls_wrap:1549:27)
npm error at TLSSocket.emit (node:events:513:28)
npm error at TLSSocket._finishInit (node:_tls_wrap:953:8)
npm error at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:734:12)
npm error A complete log of this run can be found in: C:\Users\vking\AppData\Local\npm-cache\_logs\2025-11-13T09_04_10_941Z-debug-0.log
最新发布