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 · 1 comment · May be fixed by #537
Open

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

gapipro opened this issue Oct 17, 2024 · 1 comment · May be fixed by #537

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

@jmescode-te
Copy link

Having the same issue here, and --skipInstall which I'm told should work when I do npx nuxi module add --help, does not skip the install.

tkjaergaard added a commit to tkjaergaard/nuxt-cli that referenced this issue Oct 24, 2024
@tkjaergaard tkjaergaard linked a pull request Oct 24, 2024 that will close this issue
1 task
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

Successfully merging a pull request may close this issue.

2 participants