how to add a package in package json as a dependency code example
Example: add dependencies to package.json
npm install <package-name> --save # Installs the package and add dependency in package.json
npm install # Installs dependencies listed in package.json