nest-auth-example
nest-auth-example copied to clipboard
Not Able to Run typeorm migration command
I'm on windows with node v20.10.0 and npm 9.8.1. I followed all the steps in the readme and I'm currently having problem running the command:
npm run typeorm migration:run
This is the error that I get:
> NODE_OPTIONS='-r dotenv-mono/load -r tsconfig-paths/register' typeorm-ts-node-commonjs -d src/data-source migration:run
'NODE_OPTIONS' is not recognized as an internal or external command,
operable program or batch file.
I followed an online solution for this problem here, it execute the command but then says I get this error:
> cross-env NODE_OPTIONS='-r dotenv-mono/load.ts -r tsconfig-paths/register' typeorm-ts-node-commonjs -d src\data-source.ts
migration:run
The system cannot find the path specified.
node:events:492
throw er; // Unhandled 'error' event
^
Error: spawn dotenv-mono\load.ts ENOENT
at notFoundError...
Maybe I am missing something, please let me know, Thanks