Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when update electron to ^20.0.0 ,npm install fail #626

Open
yuerdev opened this issue Aug 4, 2022 · 9 comments
Open

when update electron to ^20.0.0 ,npm install fail #626

yuerdev opened this issue Aug 4, 2022 · 9 comments

Comments

@yuerdev
Copy link

yuerdev commented Aug 4, 2022

sudo pnpm i 
Packages: +79
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
node_modules/.pnpm/[email protected]/node_modules/electron: Running postinstall script, failed in 2m 11.1s
.../node_modules/electron postinstall$ node install.js
│ RequestError: read ETIMEDOUT
│     at ClientRequest.<anonymous> (/Users/jacky/rock/electron-quick-start/node_modules/.pnpm/[email protected]/node_modules/got/source/request-as-event-emitter.js:178:14)
│     at Object.onceWrapper (node:events:510:26)
│     at ClientRequest.emit (node:events:402:35)
│     at ClientRequest.origin.emit (/Users/jacky/rock/electron-quick-start/node_modules/.pnpm/@[email protected]/node_modules/@szmarczak/http-timer/source/index.js:37:11)
│     at TLSSocket.socketErrorListener (node:_http_client:447:9)
│     at TLSSocket.emit (node:events:390:28)
│     at emitErrorNT (node:internal/streams/destroy:157:8)
│     at emitErrorCloseNT (node:internal/streams/destroy:122:3)
│     at processTicksAndRejections (node:internal/process/task_queues:83:21)
└─ Failed in 2m 11.1s
Progress: resolved 80, reused 79, downloaded 0, added 0, done
 ELIFECYCLE  Command failed with exit code 1.

node version :16.13.2
pnpm version: 7.6.0

@yuerdev
Copy link
Author

yuerdev commented Aug 4, 2022

if i use npm i throw errror

npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/
npm ERR! Cannot read properties of null (reading 'pickAlgorithm')

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jacky/.npm/_logs/2022-08-04T03_18_56_211Z-debug-0.log

@BhinbahadurUK

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@BhinbahadurUK @yuerdev @Lsnsh and others