Replies: 3 comments 1 reply
-
This question, for me, is literally that meme on XKCD where someone finds a StackOverflow post with their exact problem, but nobody answered it and OP never responded. I'm having literally the exact same problem... |
Beta Was this translation helpful? Give feedback.
-
Ugh, I found the answer and I'm going to put it here. For global packages, it has its own hidden settings. On my mac, I found the file at /Users/craigmiller/Library/pnpm/global/5/node_modules/.modules.yaml. You need to modify this to point at the correct new registry. |
Beta Was this translation helpful? Give feedback.
-
2 years ago the only solution that i have is monkey patching pnpm. Hardcoding correct registry url inside |
Beta Was this translation helpful? Give feedback.
-
Our company uses private Nexus repo as npm registry (e.g.
http://mycompany.com/repository/registry-A
), it is specified in.npmrc
like this:Some time ago
registry-A
was removed and now i should useregistry-B
, so.npmrc
has changed:But when i try to
pnpm install
on my machine, pnpm usesregistry-A
instead ofregistry-B
despite the fact that i had removed all mentions ofregistry-A
from my machine.It happens only when pnpm should resolve version for dependency (if it is missing in pnpm-lock.yaml).
When my colleague, that never used
registry-A
, tries to install dependencies, pnpm uses correct registry.Also when i try to install dependencies in docker environment, all goes well.
Seems like pnpm somehow "remembered"
registry-A
for domainhttp://mycompany.com
and use it only on my machine, but i can not figure out why.Beta Was this translation helpful? Give feedback.
All reactions