-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] npm install
results in error UNABLE_TO_GET_ISSUER_CERT_LOCALLY
#7326
Comments
This is usually because of a proxy you are in that is not providing valid ssl certificates. You can disable strict ssl in npm with strict-ssl but it's likely you'll have other problems with any node application trying to make network requests. The best solution is to contact your IT department and ask them how to configure node properly so it recognizes the certificates they're providing. |
@wraithgar Not in this case:
|
npm itself does not negotiate ssl certificates. That's a pretty low level task done by node's own http/https modules. All npm can do is tell it to not use strict ssl. Errors w/ node connecting to https is not generally an npm issue. |
It's not my computer, as far as I know. I used Migration Assistant when switching Macs, so all the files and configuration are the same. Is there a way to debug this that you recommend? I haven't had TLS/SSL connection issues with any other program, including the Homebrew package manager. |
I'd start by searching for other folks who had this problem w/ homebrew node. Homebrew/homebrew-core#92271 (comment) |
Thanks for the link. That looked promising, but I checked, and I don't have openssl@1.1 installed. I just did a brew update, and now it works for some reason. It looks like @1.1 is deprecated, but node depends on @3, so I dunno. |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm install
fails:I'm not behind a corporate firewall. I don't use a VPN. I haven't added to, removed from, or modified the default system certs. I'm not willing to permanently change the default settings to not require cert verification. NPM worked fine on my old Mac before I migrated to this Mac.
Expected Behavior
npm install
succeeds.Steps To Reproduce
With package.json:
npm install
output for about 60 seconds:then:
Content of /Users/will/.npm/_logs/2024-04-01T03_15_18_212Z-debug-0.log:
Environment
The text was updated successfully, but these errors were encountered: