Answers for "when to put dependencies in devdependencies npm"

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
0

move dependencies to devdependencies

npm i <module_name> -D
Posted by: Guest on October-20-2021

Code answers related to "when to put dependencies in devdependencies npm"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language