Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

NPM login to GitHub registry requires lowercase username

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading