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

local registry set in .npmrc file not respected #1303

Open
gxxcastillo opened this issue Feb 2, 2024 · 1 comment
Open

local registry set in .npmrc file not respected #1303

gxxcastillo opened this issue Feb 2, 2024 · 1 comment

Comments

@gxxcastillo
Copy link

Problem

I'm trying to publish to a local verdaccio instance located at http://localhost:4873/.

I've updated my .npmrc file to have:

registry=http://localhost:4873/

But when I run pnpm changeset publish it tries to publish to npmjs.org.

Note, when I run pnpm publish it correctly uses http://localhost:4873/

I've set up a demo of the issue I'm seeing here:
https://github.com/gxxcastillo/changesets-npmrc

@fvictorio
Copy link

fvictorio commented Mar 4, 2024

As a workaround, this works for me:

npm_config_registry=http://localhost:4873 pnpm changeset publish

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

No branches or pull requests

2 participants