yarn npm whoami

Category: Node.js & npm/yarn

yarn npm whoami

Show the logged-in npm user

Prints the username associated with the registry credentials yarn will use for npm operations, confirming which account publishes and installs. The --publish flag checks the publishing registry instead. Log in with yarn npm login.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.