Advertisement
Guest User

Untitled

a guest
Mar 28th, 2022
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.12 KB | None | 0 0
  1. npm run typeorm -- -d .\ormconfig.ts migration:show
  2.  
  3. > cringe-bot@1.1.3 typeorm C:\temp\CRINGE-Bot
  4. > npx --require ts-node/register ./node_modules/typeorm/cli.js "-d" ".\ormconfig.ts" "migration:show"
  5.  
  6. Error during migration show:
  7. Error: Invalid file path given: "C:\temp\CRINGE-Bot\ormconfig.ts". File must contain a TypeScript / JavaScript code and export a DataSource instance.
  8.     at Function.loadDataSource (C:\temp\CRINGE-Bot\node_modules\typeorm\commands\CommandUtils.js:22:19)
  9.     at async Object.handler (C:\temp\CRINGE-Bot\node_modules\typeorm\commands\MigrationShowCommand.js:27:26)
  10. npm ERR! code ELIFECYCLE
  11. npm ERR! errno 1
  12. npm ERR! cringe-bot@1.1.3 typeorm: `npx --require ts-node/register ./node_modules/typeorm/cli.js "-d" ".\ormconfig.ts" "migration:show"`
  13. npm ERR! Exit status 1
  14. npm ERR!
  15. npm ERR! Failed at the cringe-bot@1.1.3 typeorm script.
  16. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  17. npm ERR! A complete log of this run can be found in:
  18. npm ERR!     C:\Users\Ruben Martins.DESKTOP-V9D7257\AppData\Roaming\npm-cache\_logs\2022-03-28T07_19_53_959Z-debug.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement