npm-logout

概要

npm logout [--registry=<url>] [--scope=<@scope>]

描述

这将移除你用 npm login 保存给 npm registry 的用户名和 email。 你需要运行这个来解除认证。通俗一点讲叫做退出登录。

如果--scope提供,则会解除带有scope的注册表的认证(如果已设置)。

配置

registry

npm包注册表的默认URL,当然也可以重设注册表。

> npm logout --registry="https://myregistry.npmjs.org/"
scope
  • Default: 以当前项目的scope为退出时scope的默认值,若项目中存在scope的话。

当然也可以指定scpoe,那么您将退出指定的scope。

> npm logout --scope=@myco

results matching ""

    No results matching ""