That doesn't work unless you can assume that every developer is willing to install all the dependencies of your project globally, with no control over what versions are used.
But it's not how it's developed. It's not uncommon that you need to run multiple different versions of the software you're working on, each using different versions of its dependencies.