Npm release package process

1. Register [If you have an account, please go directly to 2]
Refer to the npm package release process

2. Log in

npm login

3. Initialize package.json

npm init [your package name] -y

  • If there is an existing package.json, the information will be printed out here, please confirm
  • package.json must contain name, version information

4. Make sure the npm source is switched backhttps://registry.npmjs.org/

npm set registry https://registry.npmjs.org/

5. Release

npm publish

Note: If it appears You do not have permission to publish "XXX". Are you logged in as the correct user? : XXX, the package name is already occupied and needs to be replaced

6. Switch npm source back to development source

npm set registry http://registry.npm.taobao.org

20190731 update

npm team member development management

method one

  • Log in to npm official website
  • Click on your profile picture in the upper right corner>packages
  • Enter the specified package project
  • maintainer option search for group member nickname

Insert picture description here

Method Two

npm owner add <user> [<@scope>/]<pkg>
npm owner rm <user> [<@scope>/]<pkg>
npm owner ls [<@scope>/]<pkg>

Example:

npm owner add jyjin my-frist-package

Note: The package name must be specified, otherwise the addition will not take effect

After success, npm official website mainrainers will display the added developer nickname

Insert picture description here

Guess you like

Origin blog.csdn.net/jianleking/article/details/86645311