npm access
设置已发布包的访问级别
概要
npm access list packages [<user>|<scope>|<scope:team> [<package>]
npm access list collaborators [<package> [<user>]]
npm access get status [<package>]
npm access set status=public|private [<package>]
npm access set mfa=none|publish|automation [<package>]
npm access grant <read-only|read-write> <scope:team> [<package>]
npm access revoke <scope:team> [<package>]
注意:此命令对工作区无感知。
描述
用于设置私有包的访问控制。
对于所有子命令,如果没有将包名传递给子命令,npm access
将对当前工作目录中的包执行操作。
tWD1Q9bT1TJLTSZPNw7cCY7qrubpmFvt2meIknUcloNjFedgwsTXzm1pkC0Ejpucj8H4vdiVN+8KDeIxRDCfprrfp2rYBQb2z1c23PWH2/loaxSkHSzX5Y9rWleX8v5n
LQehOX0S5HnA2H0UrnasvUeKo3NreA4pwCBmcX0bJKlmmpDHTHv8Pe2mFPBQEU22vK8kaSQxPWktCp0lsT0CtD6Y5OzNwG7jvyNl8j9J6iGVsSnlc1c4+avlhVJ2do8W+23VddLieRdPeBo6PJWJopxqx7tVpqn9941JICY8Z+4=
z6+8A8Vx4nNMSQ2n6sfUU1GJZolq3QlO9ykN+7uQrnjAq63CiA/zE/lDe7Kb/X6D7BdAuZONmSbASsTStKHWANDfytbBw8SwyBLyQDITTzDXfL822RVLcPXn1AhgvjvfIRWh5UsFDlhGSwjRZH6l8U1aLwnDLNxRQMcnqR9srPsjYSrIFt+GK1pkADl2bmWO
HmdCkZZnAgzcWVJNKJWu8pMSvKuE/g0tfC66c+PM+Bxlk6jUyTsP7JsmliaZNjSlAfoRAK3yICA8nZfDbQsdhzJTZfBCpTc5rdWPOPMYW6F3OjTxFfq3pP5p19dY4hpNScW9Ac9AkqCmk1ARLknr+B3uuxSq65c7PWLNh2vL8BxZzu3S+h9h/OAG+qn3EiCRK+R2RfUDTbLdYCHjIF12gQ==
W9mLHB234QHpWNTud5GezBv1W26ZPQGMYBWCLAth5SNJXnkHb2aVHuC5aBRh2aRf/kO7gkRXmUAP/smNSj/+gSamM2l45y5jF0rZXcyOQOZSvb5jRxMnuNgq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