HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

npm whoami — Display npm username. More information: <https://docs.npmjs.com/cli/whoami/>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandnpmnpm whoamicliinformationusernamemoredisplay

Problem

How to use the npm whoami command: Display npm username. More information: <https://docs.npmjs.com/cli/whoami/>.

Solution

npm whoami — Display npm username. More information: <https://docs.npmjs.com/cli/whoami/>.

Display username of the currently logged-in user:
npm whoami


Display username of the current user in the specific registry:
npm whoami --registry {{registry_url}}

Code Snippets

Display username of the currently logged-in user

npm whoami

Display username of the current user in the specific registry

npm whoami --registry {{registry_url}}

Context

tldr-pages: common/npm whoami

Revisions (0)

No revisions yet.