npm: only install production dependencies

2023-01-23 / mgrubinger / 0 reactions

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

Leave a reaction if you liked this post! 🧡
Leave a new comment