pnpm logout

从 npm 注册源中登出。撤销注册表中的身份验证令牌,并将其从本地身份验证配置文件中删除。

pnpm logout [--registry <url>]

pnpm logout removes the token from <pnpm config>/auth.ini and from the _auth setting in the global config.yaml, where pnpm 12.1 to 12.15 wrote it. A token supplied by .npmrc, another config file, or the environment is revoked at the registry but must be removed from that source manually.

配置项#

--registry <url>#

要注销的注册源。默认使用已配置的默认注册源。