Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm login does not accept email address as an user name #616

Closed
sathishchandran97 opened this issue Dec 19, 2019 · 2 comments
Closed

npm login does not accept email address as an user name #616

sathishchandran97 opened this issue Dec 19, 2019 · 2 comments

Comments

@sathishchandran97
Copy link

Hello all,
I have to use my email id as my user name. But npm login does not accept the email id (name@domain.com) as user name.
can anyone help me out?

Thanks in advance :)

@DanielRuf
Copy link

I have to use my email id as my user name

This is not possible, username for npmjs.com can only contain a-z0-9 afaik.

@ben-xD
Copy link

ben-xD commented Jun 29, 2022

Unfortunately, this issue also prevents logins with other NPM repositories. For example, artifactory's NPM packages. I tried to login with my email on there, e.g.:

npm login --registry https://company.jfrog.io/artifactory/api/npm/repository-name/
  • I entered my email, which is my Artifactory login
    Unfortunately, the error

I've had to workaround this by using .npmrc / basic authentication, as per https://www.jfrog.com/confluence/display/RTF/Npm+Registry. To do that, I just used curl -u $email:$artifactory-token $registry_url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants