生成Prisma时的错误: - EACCES:拒绝权限,需要复制文件
When I run npx prisma generate
, I get the below error:
Error: EACCES: permission denied, copyfile '/Users/
我已经从github源重新串起了该项目离开。 我之前所做的是删除node_modules
文件夹,因为我想重新安装它(这可能是问题)。
我应该只是删除.cache
内的prisma吗?我不确定为什么我需要执行复制文件命令以及如何解决此问题?
非常感谢!
PS:命令的完整序列:sudo纱线安装,启动postgres的docker,然后prisma生成上面的命令。
When I run npx prisma generate
, I get the below error:
Error: EACCES: permission denied, copyfile '/Users/<me>/.cache/prisma/master/1a2506facaf1a4727b7c26850735e88ec779dee9/darwin/libquery-engine' -> '/Users/<me>/<my-project>/node_modules/prisma/libquery_engine-darwin.dylib.node'
I have re-cloned the project from Github source, but this error doesn't go away.
What I previously did is deleting the node_modules
folder because I want to re-install it (this could be the problem).
Should I just delete the prisma inside of the .cache
? I am not sure why I need to do the copy file command and how can I fix this issue?
Thanks so much in advance!
ps: full sequence of commands: sudo yarn install, start docker for postgres, then the prisma generate command above.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正确的是:
The correct is:
这似乎是一个许可错误。您可以通过更改Node_modules/.prisma文件夹的所有权从docker容器中的default一个将其修复。
It seems like a permission error. You could fix it by changing the ownership of the node_modules/.prisma folder from the root to the default one in your docker container.