Yarn npm whoami
Yarn npm whoami 语法
$> yarn npm whoami [-s,--scope #0] [--publish]
Yarn npm whoami 实例
yarn npm whoami
yarn npm whoami --scope company
使用细节
使用时-s,--scope,输出的用户名将是与给定范围关联的注册表的身份验证设置匹配的用户名(可以使用npmRegistries映射覆盖这些设置,并且通过npmScopes映射配置与范围关联的注册表)。
使用时--publish,默认情况下,我们选择的注册表将是发布程序包时使用的注册表(publishConfig.registry或者,npmpublishRegistry 如果有的话,否则我们将退回到常规npmRegistryServer)。