pnpm: Not working with private registry
We are using private registry for npm modules based on artifactory.
I have global config for npm in ~/.npmrc
like this:
_auth = {auth-key-here}
email = {e-mail}
always-auth = true
registry={link-to-private-registry}
when I run pnpm install
I’m getting something like this:
ERROR Registry returned 401 for GET on ...
pnpm version: 0.64.8
Code to reproduce the issue:
https://gist.github.com/kopach/3abe4da1302b28fd339ea33af7c8426d
Additional information:
node -v
prints: v6.5.0- Windows, OS X, or Linux?: macOS Sierra v10.12.3
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 26 (25 by maintainers)
Commits related to this issue
- feat: support legacy auth token config key If cannot find auth token, try to get it from the legacy `_auth` config key. Ref https://github.com/pnpm/pnpm/issues/618 Ref https://github.com/pnpm/pnpm/i... — committed to zkochan/registry-auth-token by zkochan 7 years ago
- fix: authorization during tarball fetch Close #718, Close #708 — committed to pnpm/pnpm by zkochan 7 years ago
- fix: authorization during tarball fetch Close #718, Close #708 — committed to pnpm/pnpm by zkochan 7 years ago
- fix: always-auth config value is not ignored anymore Ref #708 — committed to pnpm/pnpm by zkochan 7 years ago
- fix: private packages installation Use npm's programmatic API to get auth information for private packages. Ref #708 — committed to pnpm/pnpm by zkochan 7 years ago
- fix: private packages installation Use npm's programmatic API to get auth information for private packages. Ref #708 — committed to pnpm/pnpm by zkochan 7 years ago
- fix: private packages installation Use npm's programmatic API to get auth information for private packages. Ref #708 — committed to pnpm/pnpm by zkochan 7 years ago
- fix: private packages installation Use npm's programmatic API to get auth information for private packages. Ref #708 — committed to pnpm/pnpm by zkochan 7 years ago
- fix: get auth info by registry URL Ref #708 — committed to pnpm/pnpm by zkochan 7 years ago
- fix: normalize registry URL The registry URL should always end with a /. Close #708 — committed to pnpm/pnpm by zkochan 7 years ago
Mystery solved! I’ll make the final fix tonight.
hooray 🎉 , with this workaround it works now, thanks
I know what is the issue with this. I’ll fix it this week
ok, thanks, will look into it again
Sorry, I did not publish it yet. I’ll post a message when it is published