api-server-nodejs icon indicating copy to clipboard operation
api-server-nodejs copied to clipboard

SQLite migration via TypeORM Missing required argument: dataSource

Open AdamWP opened this issue 5 months ago • 0 comments

OS: MacOS 14.1.1 (23B81) AND Ubuntu 22.04 Node Version: 16, 18, and 20

When running the following during step 3 of the installation: $ npm run typeorm migration:run // OR $ yarn typeorm migration:run

I get the following error on multiple OSs and versions of node:

npm run typeorm migration:run

[email protected] typeorm node --require ts-node/register ./node_modules/typeorm/cli.js migration:run

cli.js migration:run

Runs all pending migrations.

Options: -h, --help Show help [boolean] -d, --dataSource Path to the file where your DataSource instance is defined. [required] -t, --transaction Indicates if transaction should be used or not for migration run. Enabled by default. [default: "default"] -f, --fake Fakes running the migrations if table schema has already been changed manually or externally (e.g. through another project) [boolean] [default: false] -v, --version Show version number [boolean]

Missing required argument: dataSource

AdamWP avatar Jan 23 '24 14:01 AdamWP