Hi. I am getting the following message during exec...
# prisma-migrate
m
Hi. I am getting the following message during execution of a DB Push:
...\test-proj01> npx prisma db push
...
...
The database is already in sync with the Prisma Schema.
Running Generate ....
Generated Prisma Client (3.1.1) to .\node_modules\@prisma\client in 94ms
Error: EPERM: operation not permitted, unlink 'C:\Users\david\AppData\Roaming\npm-cache\_npx\40924\node_modules\prisma\node_modules\@prisma\engines\query_engine-windows.dll.node'
at Object.unlinkSync (fs.js:1251:3)
at fixWinEPERMSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:219:13)
at rimrafSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:319:28)
at C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:350:5
at Array.forEach (<anonymous>)
at rmkidsSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:349:26)
at rmdirSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:342:7)
at fixWinEPERMSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:217:5)
at rimrafSync (C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:319:28)
at C:\Program Files\nodejs\node_modules\npm\node_modules\rimraf\rimraf.js:350:5
I am using Typescript, Vue 3 and mySQL (package.json) attached. This is the second time I ran the command, but I got similar results the first time, just it build the DB in mySql first that time. I have attached the Debug Log. At the end it seems to be saying that it is unable to access a dll
'C:\\Users\\david\\Documents\\My-Computing-Projects\\Vue-Prisma\\test-proj01\\node_modules\\prisma\\query_engine-windows.dll.node'
This file does not seem to exist. Does anybody have any thoughts on what is going on here? Thanks in advance
r
@maxweld 👋 The error is unexpected, but the operation should work fine. The client will be generated successfully but there’s something Windows specific that’s causing this, so we will look into this 🙂
m
Thanks @Ryan. Let me know if you need anything else for diagnosis.🙂
🙌 1
r
Sure 🙂