install only devDependencies #5776

othiym23 opened this Issue Jul 23, 2014 · 3 comments

2 participants


Use case:

  • developer has node_modules under git control
  • CI runs npm install --[[devDepsOnly]] to install devDependencies *without changing any non-development dependencies
  • CD runs npm prune --production so no extra bits are left on disk
  • packed application is deployed without extra crap hanging around

See also #4791 for a previous whack at this.


This issue seems that has already resolved...?


This was implemented by @bengl as npm install --only=dev for his own nefarious purposes in npm@3. 🎉 Y'all shipped a thing without us! Thanks to all for their patience, and to @bengl for implementing this!

@othiym23 othiym23 closed this Aug 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment