save-dev npm code example
Example 1: npm install in dev mode
npm install packageName --save-dev
Example 2: how to install dependencies from package.json
npm install // installs dependencies listed in package.json
npm install packageName --save-dev
npm install // installs dependencies listed in package.json