I have Yarn 2.4.0 I used yarn add @mikro-orm/core to install the package.
yarn add @mikro-orm/core
package.json
{ "name": "test", &quo