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

open upm login doesn't work on MacOs #417

Open
Hitomilras opened this issue Nov 3, 2024 · 1 comment
Open

open upm login doesn't work on MacOs #417

Hitomilras opened this issue Nov 3, 2024 · 1 comment

Comments

@Hitomilras
Copy link

When I trying to login to my self hosted verdaccio open upm server I receive this logs:
ERR! The registry at "there was link to my server" refused your request because you are not authenticated.
notice Use "openupm login" to authenticate with the registry.
notice Run with --verbose to get more information.

The problem is that same login command works great on Windows PC.
npm login also works great on both windows and mac os.

But OpenUPM cli continue to fail every time. What there can be? There is latest version of npm and openupm-cli.

@favoyang
Copy link
Member

favoyang commented Nov 4, 2024

Thanks for reporting the issue.

Please help me verify a few things:

  1. The full log of openupm -v login -r REGISTRY_URL.

  2. check the .npmrc (at your home directory) to see if there is a line like below.

//REGISTRY_URL/mylocation/:_authToken=<AUTH TOKEN>
  1. check the .upmconfig.toml file at at your home directory.
[npmAuth."<REGISTRY_URL>"]
<TOKEN-PROPERTY> = "<TOKEN-VALUE>"
email = "<EMAIL>"
alwaysAuth = <BOOLEAN>

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