Skip to content

open upm login doesn't work on MacOs #417

Open

Description

@Hitomilras

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.

Activity

  1. favoyang commented on Nov 4, 2024

    @favoyang
    Member

    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>
    
  2. theGiallo commented on Apr 24, 2025

    @theGiallo

    Hey, I confirm this problem still persists.
    I've ended up loggin with npm and building manually the .upmconfig.toml. In Editor it works. I'm using Verdaccio as self hosted registry.

    This is the output of openupm login --verbose -r "https://myurl.com/npm":

    verb Npm registry login failed.
    verb HttpErrorAuthUnknown: Unable to authenticate, need: Basic
    ERR! The registry at "https://myurl.com/npm" refused your request because you are not authenticated.
    notice Use "openupm login" to authenticate with the registry.
    

    When I login via npm I get the entry in .npmrc as you wrote above, with the _authToken field. If I place the / at the end I have the full url in there(//myurl.com/npm/:_authToken=<AUTH TOKEN>.), if not I only have //myurl.com/:_authToken=<AUTH TOKEN>.

    I'm using openupm 4.5.1, npm 11.3.0, macOS 15.0.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions