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?
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.