npm-adduser

creates or verifies a user account in the npm registry

TLDR

Login to npm registry
$ npm adduser
Login to specific registry
$ npm adduser --registry [https://registry.example.com]
Login with specific scope
$ npm adduser --scope @[myorg]

SYNOPSIS

npm adduser [options]

DESCRIPTION

npm adduser creates or verifies a user account in the npm registry. Prompts for username, password, and email. Stores credentials in ~/.npmrc. Alias for npm login.

PARAMETERS

--registry url

Registry to authenticate with.
--scope scope
Associate with scope.
--auth-type type
Authentication type.

INSTALL

sudo pacman -S npm
sudo apk add npm
brew install npm

SEE ALSO

npm(1), npm-logout(1)