Nodejs Chapter 7 (Release npm package)

What are the benefits of publishing npm packages

  • It is convenient for teams or cross-teams to share code, and it can be easily managed by using npm packages, and version control can also be performed
  • It is a necessary technology to make open source wheels, otherwise, how can the finished wheels be used by others? Is it a U disk copy?
  • I asked this when I was interviewing Byte
  • Increase personal IP to let more people know your technical ability and contribution

Pre-launch work

npm adduser

First check whether it is an npm source and then create an npm account

image.png

After the creation is complete, use npm login to log in to the account

image.png

After the login is complete, use npm publishto publish the npm package

image.png

If the release is successful, if 403 appears, it means that the package name is occupied

image.png

Guess you like

Origin blog.csdn.net/qq1195566313/article/details/132039574