Overview - Installing packages (dependencies vs devDependencies)
What is it?
In Node.js projects, packages are external code libraries that add features to your app. When you install these packages, you can save them as either dependencies or devDependencies. Dependencies are needed for your app to run, while devDependencies are only needed during development, like tools for testing or building. This distinction helps keep your app lightweight and organized.
Why it matters
Without separating dependencies from devDependencies, your app might include unnecessary code when running in production. This can make your app slower, larger, and less secure. Properly managing these packages ensures your app runs efficiently and only includes what it truly needs at runtime.
Where it fits
Before learning this, you should understand what Node.js and npm (Node Package Manager) are and how to create a basic project. After this, you can learn about package versioning, semantic versioning, and how to publish your own packages.