Avoid trying to simultaneously install invalid peer dependencies.

Helps fix #3079.