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

Error when performing the request #332

Open
indapublic opened this issue Dec 4, 2023 · 3 comments
Open

Error when performing the request #332

indapublic opened this issue Dec 4, 2023 · 3 comments

Comments

@indapublic
Copy link

indapublic commented Dec 4, 2023

coreutils is installed by brew, version is 0.23.0

Receive Error when performing the request on each execution of pnpm or yarn.

Internal Error: Error when performing the request to https://registry.npmjs.org/pnpm; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting
    at ClientRequest.<anonymous> (/opt/homebrew/Cellar/corepack/0.23.0/libexec/lib/node_modules/corepack/dist/lib/corepack.cjs:42195:14)
    at ClientRequest.emit (node:events:519:28)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:519: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)
    /tmp  yarn --version                                   1 ✘  15:54:13 
Internal Error: Error when performing the request to https://registry.npmjs.org/yarn; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting
    at ClientRequest.<anonymous> (/opt/homebrew/Cellar/corepack/0.23.0/libexec/lib/node_modules/corepack/dist/lib/corepack.cjs:42195:14)
    at ClientRequest.emit (node:events:519:28)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:519: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 same time https://registry.npmjs.org/pnpm and https://registry.npmjs.org/yarn working in browser and by curl in terminal

no vpn or proxy enabled.

Checked #257 #259 #273

ps. Exact error message is

Error: unable to get local issuer certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
    at TLSSocket.emit (node:events:519:28)
    at TLSSocket._finishInit (node:_tls_wrap:1085:8)
    at ssl.onhandshakedone (node:_tls_wrap:871:12) {
  code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
}
@KyrieLii
Copy link

+1
Is there a way to avoid the request?

@toFrankie
Copy link

+1

@aduh95
Copy link
Contributor

aduh95 commented Feb 2, 2024

ps. Exact error message is

Error: unable to get local issuer certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1674:34)
    at TLSSocket.emit (node:events:519:28)
    at TLSSocket._finishInit (node:_tls_wrap:1085:8)
    at ssl.onhandshakedone (node:_tls_wrap:871:12) {
  code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
}

That's an error thrown by Node.js, which means the HTTPS certificate is not valid (either because someone is listening to your network traffic, or the version of Node.js you are using does not contain up-to-date cert). You can disable that security as explained in https://nodejs.org/api/cli.html#node_tls_reject_unauthorizedvalue.

Is there a way to avoid the request?

Well no, you need to fetch the software from the network before you can use it.

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