🛠️Package Manager
A tool that fetches and updates the code packages your project needs.
Think of it like
Think of it like an app store for code. You ask for a package by name, and it fetches and installs it.
Example
Emma joins a team and clones its project. One install command fetches all 240 packages the project lists.
Why it matters
Without one, you would copy code by hand. You would track each version on your own too.
Definition
Example code
console
$ npm install lodash
added 1 package, and audited 2 packages in 668ms
found 0 vulnerabilitiesCommon mistake
Key takeaways
- 1One command. Ask by name, get the package.
- 2Brings what it needs. Dependencies of dependencies come too.
- 3Same set for all. A lock file pins every version.