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

Cannot use private GitHub npm repository #2127

Closed
jsumners opened this issue Oct 30, 2019 · 6 comments
Closed

Cannot use private GitHub npm repository #2127

jsumners opened this issue Oct 30, 2019 · 6 comments
Milestone

Comments

@jsumners
Copy link

pnpm version: 4.1.6

Code to reproduce the issue:

  1. npm login https://npm.pkg.github.com/a-private-org
  2. npx nrm add github https://npm.pkg.github.com/a-private-org
  3. nps nrm use github
  4. pnpm i tap

Expected behavior:

pnpm will use the stored credentials to authenticate to the GitHub package repository so that the public tap package can be installed via the proxy.

It should also be able to install any of the private packages, but the public one exhibits the full issue.

Actual behavior:

 ERROR  401 Unauthorized: tap (via https://npm.pkg.github.com/a-private-org/tap)

Additional information:

  • node -v prints: 12.13.0
  • Windows, OS X, or Linux?: OS X
@zkochan
Copy link
Member

zkochan commented Aug 29, 2020

This might be fixed in the latest pnpm, as we have fixed some issues with github registry: #2687

@jsumners
Copy link
Author

I'll test it out when I'm back to work later in the week.

@jsumners
Copy link
Author

jsumners commented Sep 2, 2020

Can confirm. This is working in pnpm 5.5.8. I am able to install the public tap package from npmjs.org and a private package from my GH org.

@jsumners jsumners closed this as completed Sep 2, 2020
@ematipico
Copy link

I still get the same issue :(

@zkochan
Copy link
Member

zkochan commented Oct 15, 2020

Create a new issue with the output you get in the console

@zkochan
Copy link
Member

zkochan commented Oct 17, 2020

The new issue appeared to be not an issue on pnpm's side: #2933

@pnpm pnpm locked as resolved and limited conversation to collaborators Oct 17, 2020
@zkochan zkochan added this to the v5.4 milestone Oct 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants