Why is express a dependency?

Isn't the dashboard served by either RED.httpNode || RED.httpAdmin express apps?

I believe that since Node-RED already has it, express should be defined as a peerDependency

Have you tested it as a peer dependency?

I don't know if that would work since Node-RED is generally installed globally not locally. And even when installed locally, it is likely in a higher-level folder.

I've not really played with peer-dependencies so I don't know if there are any consequences.