npm install devDependencies code example
Example 1: npm dev dependencies
npm install <package-name> --save-dev
npm install <package-name> --save
npm install --only=dev
npm install --only=prod
npm install
Example 2: how to install as dev dependency
npm install <package-name> --save-dev
Example 3: npm install package as developer dependency
npm install --save-dev package
npm install --save-dev nodemon
Example 4: npm install dev dependencies
npm install <package-name> --save-dev
Example 5: npm install in dev mode
npm install packageName --save-dev