Skip to content
On this page

发布一个npm包

账号管理

  1. 添加账户 or 登录账号
bash
npm adduser
# or
npm login
  1. 查看当前登录账号
bash
npm whoami
  1. 退出当前登录账号
bash
npm logout

发包

  1. 发布包
bash
npm publish
  1. 查看包管理者
bash
npm owner ls
  1. 添加包管理者
bash
npm owner add [username]
  1. 移除包管理者
bash
npm owner rm [username]
  1. 取消发布(此操作只有管理员有权限,请联系管理员)
bash
npm unpublish [name]@[version]

Released under the MIT License.