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 override scoped registry in .npmrc #3957

Open
templar820 opened this issue Feb 13, 2024 · 1 comment
Open

Cannot override scoped registry in .npmrc #3957

templar820 opened this issue Feb 13, 2024 · 1 comment

Comments

@templar820
Copy link

templar820 commented Feb 13, 2024

Hello, I have

.npmrc with

@tech:registry=mynexus.com/npm -> this registry only for download packages

But in CI I want use for this scope

@tech:registry=mynexus.com/npm-tech -> this registry only for upload packages

I try use lerna cli with --registry, but scope from .npmrc is more important than registry from cli.

I try use publishConfig in package.json and lerna.json for override command.

But always it's created general registry, not scoped(

How i can override scoped registry?

In npm i can use this command

npm publish --@tech:registry=mynexus.com/npm-tech; 

how in lerna cli?

@ghiscoding
Copy link

I try use publishConfig in package.json and lerna.json for override command.

not supported in Lerna (but supported in Lerna-Lite), see #3568, #3402

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

No branches or pull requests

2 participants