RequestError: certificate has expired
- Dominant language
- TypeScript
- Stars
- 3.2k
- Forks
- 274
- PR merge metrics
- No merged PRs in 30d
Description
```
[4/5] Building fresh packages...
[-/7] ⢀ waiting...
[-/7] ⠠ waiting...
[-/7] ⠠ waiting...
[4/7] ⠠ electron
error D:\project\lightproxy\node_modules\electron: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: D:\project\lightproxy\node_modules\electron
Output:
RequestError: certificate has expired
at ClientRequest. (D:\project\lightproxy\node_modules\got\dist\source\core\index.js:970:111)
at Object.onceWrapper (node:events:633:26)
at ClientRequest.emit (node:events:530:35)
at origin.emit (D:\project\lightproxy\node_modules\@szmarczak\http-timer\dist\source\index.js:43:20)
at TLSSocket.socketErrorListener (node:_http_client:495:9)
at TLSSocket.emit (node:events:518:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```
npm config set registry https://registry.npmmirror.com
npm cache clean --force
npm config set strict-ssl false
换了几个镜像,依然是相同错误。
直接进入目录node_modules\electron,运行node install.js,没任何问题。但运行yarn run install-deps,到了这里就出错。
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce with yarn run install-deps and inspect the Electron install step under node_modules/electron, especially node install.js, along with the got certificate stack. Compare it with running node install.js directly and the reported registry and SSL settings. Done means dependency installation completes without the certificate error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, node.js, typescript
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100