Module BasicsLesson 19Free preview
Node Manage Dep
This lesson is part of Node.js · All levels
Summary
Dependence management means controlling the packages that a project needs and its version to stay consistent across all machines. NPM uses a semver approach with the prefixes ^ and ~ to determine the allowed version range. The package-lock.json file locks the exact version so that the installation can be reproduced anywhere.
Key points
- ^ allows minor update/patch, ~ allows only patch
- Package-lock.json locks the exact version of the entire dependence
- Npm update updates the package within the allowed version limits
- Npm outdated helps monitor outdated packages
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.