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

PNPM: pnpm outdated: UNABLE_TO_GET_ISSUER_CERT_LOCALLY when strict-ssl=false #3493

Closed
frederikdekegel opened this issue Jun 1, 2021 · 3 comments · Fixed by #3494
Closed
Assignees

Comments

@frederikdekegel
Copy link

frederikdekegel commented Jun 1, 2021

pnpm version: 6.6.2

Code to reproduce the issue:

Perform the command "pnpm outdated" with strict-ssl set to false in .npmrc.

Expected behavior:

No error messages UNABLE_TO_GET_ISSUER_CERT_LOCALLY when performing pnpm outdated.

Actual behavior:

When in .npmrc strict-ssl is set to false, UNABLE_TO_GET_ISSUER_CERT_LOCALLY messages are displayed for every package first as WARNING later as ERROR.

image

Additional information:

Strange though that the command "pnpm install" works without a glitch and is, thus, not displaying UNABLE_TO_GET_ISSUER_CERT_LOCALLY messages even when versions of packages needed to be downloaded.

  • node -v prints: 14.17.0
  • Windows, macOS, or Linux?: Windows 10 Enterprise
@zkochan
Copy link
Member

zkochan commented Jun 1, 2021

If pnpm install works, then probably we don't pass all the necessary options to the resolver in pnpm outdated.

@0xced
Copy link

0xced commented Dec 9, 2021

On pnpm 6.23.6 and node 14.18.2, setting strict-ssl to false in the .npmrc config file did not solve the UNABLE_TO_GET_ISSUER_CERT_LOCALLY error. What worked instead was setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to 0.

@JohanHeyvaert
Copy link

On pnpm 6.23.6 and node 14.18.2, setting strict-ssl to false in the .npmrc config file did not solve the UNABLE_TO_GET_ISSUER_CERT_LOCALLY error. What worked instead was setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to 0.

Same for pnpm 7.14.2 and node 18.12.1. Thanks!

Maybe this can be documented somewhere? (if not already the case; can't find it anyway)

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

Successfully merging a pull request may close this issue.

4 participants