Home > Net >  NPM login to GitHub registry requires lowercase username
NPM login to GitHub registry requires lowercase username

Time:03-08

I'm trying to log in from the command line using this command:

$ npm login --registry=https://npm.pkg.github.com/

But my username on GitHub has an uppercase first letter, which results in the following error:

$ npm login --registry=https://npm.pkg.github.com/
Username: <Username>
npm WARN Name must be lowercase

Anyone know how I can get around this? Do I have to change my GitHub username for this to work?

CodePudding user response:

npm started to enforce lower case usernames at some points, leaving the accounts previously created in this awkward situation.

To solve the issue, you might want to email [email protected], which will link the lowercase variant of your username to your account.

source: this github issue.

  • Related