Answers for "npm install dev dependencies"

18

npm dev dependencies

# install as devDependency
npm install <package-name> --save-dev

# install as normal dependency
npm install <package-name> --save

# install all devDependencies listed in package.json
npm install --only=dev

# install all normal dependencies listed in package.json
npm install --only=prod
# or if NODE_ENV is set to production
npm install
Posted by: Guest on August-10-2020
8

npm install dev dependencies only

npm i -D
Posted by: Guest on December-08-2020
6

how to install as dev dependency

npm install <package-name> --save-dev
Posted by: Guest on December-30-2020
2

npm install package as developer dependency

npm install --save-dev package
# example:
npm install --save-dev nodemon
Posted by: Guest on June-06-2020
3

npm install without dev dependencies

npm install --only=prod
Posted by: Guest on January-29-2021
7

npm install dev dependencies

npm install <package-name> --save-dev
Posted by: Guest on June-28-2020

Code answers related to "npm install dev dependencies"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language