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
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 logincommand 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=legacyargument 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