commands.sh

npm login

all

Log in to a registry user account. See also: `npm logout`.

More info →

Examples (3)

Log in to a registry user account and save the credentials to the `.npmrc` file

Log in using a custom registry

npm login --registry registry_url

Log in using a specific authentication strategy

npm login --auth-type legacy|web
made by @shridhargupta | data from tldr-pages