Module BasicsLesson 20Free preview
Node Publish Packages
This lesson is part of Node.js · All levels
Summary
NPM allows you to publish your own library so that others can use it through npm install. Before publishing, complete package.json with a unique name, version, and clear description. After that, use npm login and then npm publish to upload the package to the registry.
Key points
- The packet name must be unique in the public NPM registry
- Fill in the field name, version, description, and repository before publishing
- Use npm login and then npm publish to upload
- Upgrade the patch (minor/major) every time you release a change
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.