Skip to content
Advertisement

error An unexpected error occurred: “EPERM: operation not permitted, unlink ‘path_to_project\node_modules\prisma\query_engine-windows.dll.node’

I installed Prisma and I run npx primsa db push it pushed all tables to database successfully, after that I run npx prisma generate it tried to install @prisma/client and it fails with this error message:

error An unexpected error occurred: “EPERM: operation not permitted, unlink ‘path_to_projectnode_modulesprismaquery_engine-windows.dll.node’

I tried to remove node_modules and re-install all modules but it not worked.

Advertisement

Answer

I had to install @prisma/client manually with yarn add @prisma/client then run npx prisma generate it works perfectlly.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement