npm owner
管理包所有者
概要
npm owner add <user> <package-spec>
npm owner rm <user> <package-spec>
npm owner ls <package-spec>
alias: author
描述
管理已发布包的所有权。
- ls: 列出所有有权修改包和推送新版本的用户。当您需要知道向谁寻求帮助时非常方便。
- add: 添加一个新用户作为包的维护者。此用户可以修改元数据、发布新版本和添加其他所有者。
- rm: 从包所有者列表中删除用户。这立即撤销了他们的特权。
请注意,只有一级访问权限。要么你可以修改一个包,要么你不能。未来的版本可能包含更细粒度的访问级别,但目前尚未实现。
如果您使用 auth-and-writes
(请参阅 npm-profile
)启用了双重身份验证,那么在更改所有权时您将需要通过第二个因素流程,或者在 --otp
的命令行中包含一个 otp。
配置
registry
- b0hrlHHbrsBd1+jTjC8F8E/QYfxEqtYFLje6pfSlYMxHKGU8NT0Lgc/zOyAAHyiZ5LumYu/fAbY39k7wZy1v3B6v+lN2LIEtvZXejASSZQm8iAGObMzppRSBr7ietWLXsQ/dKl8D2zkJv544lsKpg07e9teTRP7Ay4q0WN+lknA=
IP+2h/sMiq8JhPOP/Ao1ipoANI3cAr9zPXu6iIvkn1g=
otp
- b0hrlHHbrsBd1+jTjC8F8Jg0ExApaTdGv3olILjLy3MaND5S2pHpUXz12Cj9D7+n8rhTUdMcMTqWa1mC9YafmA==
dhbJjawKYiqhU/Mm3fp6SFSEbeOmR7uG3YaK0o5EoLeJBR9vofRE0/xUQ/vUgONt3zxsENOUcx1Q4YlwQnV5FweDeMBACvRBnM0wiFPLCZOXX0V7bzCeQ4VX2/MxJXW/JIQwcq6SxbHf5NFAaAup4Txqb42siQLwacvMkjAqZYc=
0VU442helPxzhAanAflSjtQrwo9yRKr1FHyQzhRyhFMhs2d2du0DhjZABWyJMaP1OzwpfTkT8EczOkpTm/4QfQteWg2Jw8yMwZS22tvivFMmkZSgQBQQ1Q0vIAZtb/mEfruXz181PfD7HNJM7/WRwejoAEjgQaXk/mN4IdKOamg=
workspace
- b0hrlHHbrsBd1+jTjC8F8KCRLyzJRT+WqUZQ4r307lIYvog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