Package Management
Prerequisites: Node.js and npm
package.json records exactly which packages (and version ranges) a
project depends on, so anyone else can install the same set with one
command.
npm install
npm install --save-dev jest
Commit package.json and package-lock.json (the exact resolved
versions) to version control, but not the node_modules folder — it's
regenerated from those files on any machine via npm install.