how to install as a dev dependency npm code example
Example 1: how to install as dev dependency
npm install <package-name> --save-dev
Example 2: npm install package as developer dependency
npm install --save-dev package
# example:
npm install --save-dev nodemon