npm org

管理组织

概要

npm org set <orgname> <username> [developer | admin | owner]
npm org rm <orgname> <username>
npm org ls <orgname> [<username>]

注意:此命令对工作区无感知。

示例

将新开发人员添加到组织:

$ npm org set my-org @mx-smith

向组织添加新管理员(或将开发人员更改为管理员):

$ npm org set my-org @mx-santos admin

从组织中删除用户:

$ npm org rm my-org mx-santos

pU/Tqj1ou6qtzMi1EEXYfV2w/qQSvECzUlO5z88u8hU992t7EBmka0/aIThF1CPB

$ npm org ls my-org

A17MP3lb6hFJqO32cH+4QsPXeB+VYQ2cF2xo4b/d460R+Z1SbF47cjvzZTgsAlXA

$ npm org ls my-org --json

GBEyIdvEZRCTy/iE/QUkQC35QAbMvUxow/Fa029BTCfiyDXWpLlR9SL9WNdKCVLi

$ npm org ls my-org @mx-santos

描述

AJF4ZUiAd5Y9cLijA8zpSSDJFDIpUVScRd/w3mqNDm+W8yCZCiPcS5p1IRDXI4qLj4eSRbJbdTEJaFSJeYWthkD7RM3uA4jnQBkYWVYnPLZ5wer5ih7kOqTLoXj2Rf35FBmvbWsfqfHyPo3liNRndKVqaGrZkaOd+fPNQVAKwVN/rAeNgdfD7Xl1dSAsPn9ii39QL3Tm4V6Gq7kwqUHaYTM7HpRPXttJw1Rj5Y2/WTh5sxAgF5/mT7xAvVcnebhPGj8Bi8WZlvmrE2UcuOJz6w==

配置

registry

    nkHXlmkSzfEgZpp44JJjnrWXGEuXvJ2rnR1ylMSM7ADALR87hiOXfTl66LXJNojFDat8ZK2LGJabZUt0AsA7+5QMzsfq6oBQzc7cZy5UoiptVUZpllWmAoftJrVkOmrXP/qNtbXg20dTgfvUdxY22DaqhHXzME6pp9pehjhksAM=

8f/TCdmUzD++UhIKtuvkZV+aG4JnnCUl/r6w0cnvH9Q=

otp

    nkHXlmkSzfEgZpp44JJjnlkMIxuRKSrPvlZpmWfN1FAKdH3XGbJXm8h5VuJn9Tol5DtRLBB7Tofx097Z6+KHjg==

T4AZbOIX67d7/C5kbPk+HRfMgqTV+9HgvOF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