Is there a proper way to install local plugin's dependencies?

Clarification for that means you need to move the dependencies into your main package.json and not the custom plugin one.