title: How to install and config seeder into mikroORM
body: <p>Hi I try to run seeders in mikroORM and I found problem. I did everything as is descrbed here: <a href="https://mikro-orm.io/docs/next/seeding" rel="nofollow noreferrer">https://mikro-orm.io/docs/next/seeding</a>.</p>
  <ol>
  <li>Create seeders directory in mikro-orm route folder (next to mikro-orm.config.ts)</li>
  <li>Updated mikro-orm.ts with this linse:</li>
  </ol>
  <pre><code>  seeder: {
      path: './seeders', // path to the folder with seeders
      pathTs: './seeders', // path to the folder with TS seeders (if used, we should put path to compiled files in `path`)
      defaultSeeder: 'DatabaseSeeder', // default seeder class name
      glob: '!(*.d).{js,ts}', // how to match seeder files (all .js and .ts files, but not .d.ts)
      emit: 'ts', // seeder generation mode
      fileName: (className: string) =&gt; className, // seeder file naming convention
    },
  </code></pre>
  <p>and then I try run this command</p>
  <pre><code>npx mikro-orm seeder:create DatabaseSeeder
  </code></pre>
  <p>and get error: Unknown arguments: seeder:create, DatabaseSeeder</p>
  <p>There is also no seed command in my mikro-orm commands list so I try install IT:</p>
  <pre><code>npm i @mikro-orm/seeder
  </code></pre>
  <p>and I stuck on this error</p>
  <pre><code>λ npm i @mikro-orm/seeder
  npm ERR! code ERESOLVE
  npm ERR! ERESOLVE unable to resolve dependency tree
  npm ERR!
  npm ERR! While resolving: anthony-web-app-api@1.0.0
  npm ERR! Found: @mikro-orm/core@4.5.10
  npm ERR! node_modules/@mikro-orm/core
  npm ERR!   @mikro-orm/core@&quot;^4.5.9&quot; from the root project
  npm ERR!   peer @mikro-orm/core@&quot;^4.0.0&quot; from @mikro-orm/entity-generator@4.5.10
  npm ERR!   node_modules/@mikro-orm/entity-generator
  npm ERR!     peerOptional @mikro-orm/entity-generator@&quot;^4.0.0&quot; from @mikro-orm/core@4.5.10
  npm ERR!   6 more (@mikro-orm/mariadb, @mikro-orm/migrations, ...)
  npm ERR!
  npm ERR! Could not resolve dependency:
  npm ERR! peer @mikro-orm/core@&quot;^5.0.0&quot; from @mikro-orm/seeder@5.2.0
  npm ERR! node_modules/@mikro-orm/seeder
  npm ERR!   @mikro-orm/seeder@&quot;*&quot; from the root project
  npm ERR!
  npm ERR! Fix the upstream dependency conflict, or retry
  npm ERR! this command with --force, or --legacy-peer-deps
  npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
  npm ERR!
  npm ERR! See C:\Users\adria\AppData\Local\npm-cache\eresolve-report.txt for a full report.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\adria\AppData\Local\npm-cache\_logs\2022-06-11T11_29_10_541Z-debug.log
  </code></pre>
  <p>I will be very appreciate for any advise how to solve this. Thx</p>