npm access

设置已发布包的访问级别

概要

npm access public [<package>]
npm access restricted [<package>]
npm access grant <read-only|read-write> <scope:team> [<package>]
npm access revoke <scope:team> [<package>]
npm access 2fa-required [<package>]
npm access 2fa-not-required [<package>]
npm access ls-packages [<user>|<scope>|<scope:team>]
npm access ls-collaborators [<package> [<user>]]
npm access edit [<package>]

描述

用于设置私有包的访问控制。

对于所有子命令,如果没有将包名传递给子命令,npm access 将对当前工作目录中的包执行操作。

  • public / restricted(已弃用):将包设置为可公开访问或受限制。

  • LQehOX0S5HnA2H0UrnasvUeKo3NreA4pwCBmcX0bJKlmmpDHTHv8Pe2mFPBQEU22vK8kaSQxPWktCp0lsT0CtD6Y5OzNwG7jvyNl8j9J6iGVsSnlc1c4+avlhVJ2do8W+23VddLieRdPeBo6PJWJopxqx7tVpqn9941JICY8Z+4=

  • z6+8A8Vx4nNMSQ2n6sfUU1GJZolq3QlO9ykN+7uQrnjAq63CiA/zE/lDe7Kb/X6D7BdAuZONmSbASsTStKHWANDfytbBw8SwyBLyQDITTzDXfL822RVLcPXn1AhgvjvfIRWh5UsFDlhGSwjRZH6l8U1aLwnDLNxRQMcnqR9srPsjYSrIFt+GK1pkADl2bmWO

  • HmdCkZZnAgzcWVJNKJWu8pMSvKuE/g0tfC66c+PM+Bxlk6jUyTsP7JsmliaZNjSlAfoRAK3yICA8nZfDbQsdhzJTZfBCpTc5rdWPOPMYW6F3OjTxFfq3pP5p19dY4hpNScW9Ac9AkqCmk1ARLknr+B3uuxSq65c7PWLNh2vL8BxZzu3S+h9h/OAG+qn3EiCRK+R2RfUDTbLdYCHjIF12gQ==

  • W9mLHB234QHpWNTud5GezBv1W26ZPQGMYBWCLAth5SNJXnkHb2aVHuC5aBRh2aRf/kO7gkRXmUAP/smNSj/+gSamM2l45y5jF0rZXcyOQOZSvb5jRxMnuNgqpfdfcE1bnKs7nhIVd+trLbedtiTwvggYKwJ6oXBV0CcEocIMgO9aoCahaT8rnP38SK7Zg4Q1po/KKuPc9czR1Nh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