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

Nuxi add command not working with private repositories where auth is required #518

Open
gapipro opened this issue Oct 17, 2024 · 0 comments

Comments

@gapipro
Copy link

gapipro commented Oct 17, 2024

Normal usage of nuxi is via: npx nuxi@latest module add ui

add command reads custom registry setting from .npmrc file but it reads just the URL. Not the _auth settings that should also be taken into consideration when creating a fetch request by appending correct headers.

.npmrc example:

registry=https://<repo-path>/
//<repo-path>:_authToken="<token>"

There are also other properties that can be set in .npmrc file. Example of implementation: pnpm/pnpm#8207

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

1 participant