--savedependacies npm install code example
Example 1: how to install as dev dependency
npm install <package-name> --save-dev
Example 2: npm install and add to dependancies
npm i packageName -save
npm install <package-name> --save-dev
npm i packageName -save