EPERM: operation not permitted

EPERM: operation not permitted, unlink '...node_modules\prisma\query_engine-windows.dll.node'

For anyone developing on Windows, you may get this issue. I solved it through this link: https://github.com/prisma/prisma/issues/9184#issuecomment-917396506

Also do not try to migrate prisma with the dev server still running.

It was the root cause of stopping me from signing in once I migrated the prisma schema to include the adapter models. The migration didn’t get pushed through all the way, and I would get this error even after updating the strategy to jwt:

Operation 'findUnique' for model 'Account' does not match any query.
1 Like

Thanks I kept getting “Try signing in with a different account” from NextAuth google provider and this helped