npm install --dev code example
Example 1: npm install package as developer dependency
npm install --save-dev package
# example:
npm install --save-dev nodemon
Example 2: npm install dev dependencies
npm install <package-name> --save-dev
Example 3: npm install dev
npm install <package-name> --save-dev
Example 4: npm install in dev mode
npm install packageName --save-dev
Example 5: how to install dependencies from package.json
npm install // installs dependencies listed in package.json