npm packages required for npm install code example
Example 1: npm install package as developer dependency
npm install --save-dev package
# example:
npm install --save-dev nodemon
Example 2: install an npm package
npm install package-name
To save as a dependency:
npm install package-name --save