🛠️npm
Also known as Node Package Manager, npm registry
The tool for getting JavaScript packages. It is also the big shelf they come from.
Think of it like
Think of it like the biggest toy shop in the world. Almost any part you want for a JavaScript app is on a shelf there.
Example
Jack runs npm install in a new React project. A folder fills up with each package the app needs.
Why it matters
Definition
Example code
console
$ npm install lodash
added 1 package, and audited 2 packages in 668msCommon mistake
Key takeaways
- 1Comes with Node. Install Node.js and you have npm.
- 2A huge registry. Millions of packages to choose from.
- 3Runs scripts too. npm test and npm run build start tasks.