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: 将包设置为可公开访问或受限制。

  • ds8jMK0wuSUpmcJNykV1K2U/F8uAVRLoTbS4T5EUWcL5em7Vxs8aYXrIMFrwnItzYm8ml8HxCog6UDsh9bFKxKuKqq3eNItelFb8wVYBbYun3rWbR6XvnUpLoTHVkfl82CqCkXpkd/PauoDptGgJzQ==

  • z6+8A8Vx4nNMSQ2n6sfUU6vtSzr7tWNDgthMQkJC8Cf3YnbfA+MqpK8/XOpEThNnKrX7XSi8QIR8xQHcoDHS9N96z7IM1EMiQbKa+fRgFwmMgQ7omcMKF92l1G1c2U4mcAF2OIIBvgkklHvG9D/7ISO0/5YEKVSVEhQxWVeT/SA=

  • N1IOgTTB0fz6e84uYq+VYs8vzGdjsRDjGjDyAIhGlvl/TzMSttIOozdZzv+eQ0CpNWLZHG7zlcvPbLHrNH4TZxRCcBqE4a6jCNqbtW5EtswNDeKzEESkA6u5YDExnEffPMIrpaMk4LkNS0ys1Qcg7OZ6EqbsD9S2GpjCzXekq32CsizbuNX35leBRMm3wV68

  • W9mLHB234QHpWNTud5GezHhr9Pb9+N0KVmAoJPbRCLDt1FBtfFXW8mW0VY83aTEpHEZDPzKqEjajvLWDHQY191vqRrRmyL3wMhYulazMk8voztnazs0PTiotgmsldhX7ZYw4N6/I9u0rv/Z51j0ocp7zGUH3R3k91M44vBy3s3Cg/wjItPqcfcfZW3h3jT40xW1BQO9+wiM2l41K8SaHivA4Gz1TTZOurGjcmRebhGCR5jpxIn0wswdh3CnuZMrddoTfPvDTg1Ibi+sq5apDwg==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