gpt4 book ai didi

Problem upgrading Prisma version 4.10 to 5.2 in Win 11(在Win 11中升级Prisma版本4.10至5.2时出现问题)

转载 作者:bug小助手 更新时间:2023-10-22 15:47:03 32 4
gpt4 key购买 nike



I want to use Prisma 5.2.0 over my old version 4.10. But when i run " npx prisma generate", i got an issue :
"Downloading Prisma engines for Node-API for windows [========== ] 49%Error: EPERM: operation not permitted, unlink 'C:\Users\ADMIN\Dfantasy\dFantasy-BE\node_modules@prisma\engines\schema-engine-windows.exe'".
By the way, i can't see my prisma version using prisma -v.

我想在旧版本4.10上使用Prisma 5.2.0。但当我运行“npx-prisma generate”时,我遇到了一个问题:“下载prisma引擎用于windows的Node-API[=============]49%错误:EPERM:不允许操作,取消链接'C:\Users\ADMIN\Dfantasy\Dfantasy-BE\node_modules@prisma\engines\schema engine windows.exe'“。顺便说一句,我看不到使用prisma-v的prisma版本。


I'm using Node version 18 and Typescript version 4.7. In my package.json, all @prisma/client and prisma are at version 5.2.0.
In my schema.prisma, i set provider = "prisma-client-js"

我使用的是Node版本18和Typescript版本4.7。在我的package.json中,所有@prisma/client和prisma都是5.2.0版本。在我的schema.prisma中,我设置provider=“prisma-client-js”


Something wrong with my schema-engine-window.exe. How can i fix it ?

我的schema-engine-window.exe出现问题。如何修复?


I tried to delete node_modules file and manually reinstalled @prisma/client and prisma but not working.

我试图删除node_modules文件,并手动重新安装@prisma/client和prisma,但没有工作。


更多回答

Please provide enough code so others can better understand or reproduce the problem.

请提供足够的代码,以便其他人能够更好地理解或重现问题。

优秀答案推荐
更多回答

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com