Answers for "npm install dev dependencies shortcut"

24

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
10

npm install dev dependencies only

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

npm install save shortcut

npm i -S package_name
Posted by: Guest on October-05-2020

Code answers related to "npm install dev dependencies shortcut"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language