mgrubinger / blog

https://www.grooovinger.com/
MIT License
0 stars 0 forks source link

npm: only install production dependencies #29

Open mgrubinger opened 1 year ago

mgrubinger commented 1 year ago

short: Faster npm ci installs

In a production environment, you should not need node_dependencies from listed in the devDependencies section of your package.json.

NODE_ENV=production npm ci will only install dependencies listed in dependencies of your package.json. devDependencies will not be installed.

Alternative: use npm ci --omit=dev