Hi folks. Has anyone experienced the following err...
# orm-help
r
Hi folks. Has anyone experienced the following error while running `npx prisma migrate dev --feature-preview`:
Copy code
Error: Failed to create a new migration directory.
   0: migration_core::api::CreateMigration
           with migration_name="init" draft=false
             at migration-engine/core/src/api.rs:94
I am pretty sure this is a local issue, but can’t seem to pinpoint what is potentially blocking prisma
t
Could it be a permissions issue?
(if docker is involved, for example)
j
Here the error seems to be that it’s not possible to create the following directory
./prisma/migrations/
you could try to create it manually
Rereading it might actually be about creating a subdirectory in it which you can’t manually create because the name has the current timestamp from when it’s created
r
I did try creating it manually and still got the same error. I am running everything locally with no docker container.
I am able to successfully run
npx prisma migrate reset
if that sparks any thoughts
j
What’s your local operating system here?
r
mac OS latest version
🤔 1
j
I see
--feature-preview
in your command which suggest an older version of the CLI, could you check which version you are executing here with
npx prisma -v
?
r
Copy code
prisma                  : 3.4.0
@prisma/client          : 3.4.0
Current platform        : darwin
Query Engine (Node-API) : libquery-engine 1c9fdaa9e2319b814822d6dbfd0a69e1fcc13a85 (at ../node_modules/@prisma/engines/libquery_engine-darwin.dylib.node)
Migration Engine        : migration-engine-cli 1c9fdaa9e2319b814822d6dbfd0a69e1fcc13a85 (at ../node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine    : introspection-core 1c9fdaa9e2319b814822d6dbfd0a69e1fcc13a85 (at ../node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary           : prisma-fmt 1c9fdaa9e2319b814822d6dbfd0a69e1fcc13a85 (at ../node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash    : 1c9fdaa9e2319b814822d6dbfd0a69e1fcc13a85
Studio                  : 0.438.0
I am running postgres via PostgresApp as well locally
but I do think it’s potentially a permissions issue that’s blocking prisma from creating the migration dir. Just unsure how to verify that and adjust the permissions
👍 1
r
I have read and write for the directory
I have it figured out…my security app was blocking it of course haha
Thanks for taking time to look at this with me, it’s greatly appreciated!
💚 1
j
What’s the name of your security app? Just curious
r
I use Bitdefender
👍 1