install to dev dependencies code example
Example 1: npm install package as developer dependency
npm install --save-dev package
# example:
npm install --save-dev nodemon
Example 2: npm install and add to dependancies
npm i packageName -save
npm install --save-dev package
# example:
npm install --save-dev nodemon
npm i packageName -save