npm install and save on package code example
Example 1: npm install in dev mode
npm install packageName --save-dev
Example 2: npm install and add to dependancies
npm i packageName -save
npm install packageName --save-dev
npm i packageName -save