As we saw in the first chapter, npm (or yarn if you prefer that alternative package manager) will become one of your best friends. With it, you will be able to manage the dependencies of your projects, install and update them, and execute scripts as well.
Introducing npm
package.json
When you work on a project, usually, you simply don't want to create a long document explaining how to download/install each and every dependency. Instead, you want to have a simple way to install everything at once.
As explained in the official documentation (https://docs.npmjs.com/getting-started/using-a-package.json), a package.json file does the following:
- Lists the packages that your project depends on
- Allows you to specify the versions...