1

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?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
o01
  • 5,191
  • 10
  • 44
  • 85

1 Answers1

2

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 support@npmjs.com, which will link the lowercase variant of your username to your account.

source: this github issue.

Mehdi
  • 7,204
  • 1
  • 32
  • 44