← 返回命令列表

Linux command

npm-whoami 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show current user

npm whoami

Check specific registry

npm whoami --registry=[https://registry.example.com]

说明

npm whoami displays the logged-in username. Verifies authentication. The command shows current user. Useful for debugging auth issues.

参数

--registry _URL_
Registry to check.
--help
Display help information.

FAQ

What is the npm-whoami command used for?

npm whoami displays the logged-in username. Verifies authentication. The command shows current user. Useful for debugging auth issues.

How do I run a basic npm-whoami example?

Run `npm whoami` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --registry _URL_ do in npm-whoami?

Registry to check.