Is there a way to uninstall dev dependencies with composer?

Running install or update with --no-dev should now remove dev requirements and their dependencies.

Original answer for historical purposes:

Actually no. You can manually rm -rf them from the vendor dir of course, but composer offers no way to uninstall the dev requirements after you did an install with –dev. It’s not a huge use case but could warrant a new command line switch, if you would like to report an issue on github.

Leave a Comment