Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
npm whoami
undefined
Lines 12 to 21 in dc8e6bd
Expected Behavior
npm whoami
npm ERR! This command requires you to be logged in.
It seems to me, that there should be condition on return at line 15
if (registryData?.username) {
return registryData.username;
}
Steps To Reproduce
- Config registry=https://verdaccio.example.com
- Run 'npm whoami'
- See result
Environment
- npm: 8.19.2
- Node.js: 18.12.1
- OS Name: Windows 11
- System Model Name: Other
- npm config:
registry=https://verdaccio.example.com