Understanding npm dependencies and devDependencies
When working with npm packages, it’s important to understand the difference between dependencies and devDependencies. Knowing when to classify a package as a dependency or a dev dependency will help optimize your project’s setup. Dependencies When you run npm install <package-name>, the package is installed as a dependency. It is automatically added to the dependencies list in your package.json file. Previously, you had to manually specify --save to include it in the dependencies....