Command issue when running on Windows
matt-clegg opened this issue · 4 comments
matt-clegg commented
I attempted to run the npx directus-auto-migrate my-first-migration
command on a fresh copy of Directus on Windows, however I was met with this error:
'"-S"' is not recognized as an internal or external command,
operable program or batch file.
I was trying to test it with SQLite but I don't think it got that far.
dstoyanoff commented
Hey Matt,
is there a reason for you to use this package instead of the built-in schema migrations that were added to the Directus core?
I can see that the issue for you comes from the -S
flag in the ts-node shebang syntax, but I honestly can't remember why I added this flag
matt-clegg commented
Have I missed something in the Directus docs then? I thought migrations in Directus were rather manual.
dstoyanoff commented
matt-clegg commented
Oh I did miss this, thank you for pointing it out!