How are you installing the plugin? Is it via composer like explained here: https://getcomposer.org/doc/05-repositories.md#loading-a-package-from-a-vcs-repository
If it is not installed by composer, then composer won’t know about it’s dependencies. In that case you need to define the dependencies in your main applications composer.json file.