npm specify dependencies of certain packages code example
Example 1: how to install as dev dependency
npm install <package-name> --save-dev
Example 2: npm install in dev mode
npm install packageName --save-dev
npm install <package-name> --save-dev
npm install packageName --save-dev