Skip to content

Packages: Working with the npm registry: missing npm login argument for npm v9 #22199

@boraozgen

Description

@boraozgen

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages

What part(s) of the article would you like to see updated?

Under "Authenticating with a personal access token", the npm login command is described. The instructions do not work with npm v9, as the default authentication method has changed to "web" and GitHub uses the "legacy" method. The --auth-type=legacy argument is required to solve this. See https://docs.npmjs.com/cli/v9/commands/npm-login for the CLI ref and https://www.jfrog.com/confluence/display/JFROG/npm+Registry for the Artifactory docs regarding this issue.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamhelp wantedAnyone is welcome to open a pull request to fix this issuepackagesThis issue or pull request should be reviewed by the docs packages team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions