graphql-nextjs: Can't write schema.graphql to file system (Error: EACCES: permission denied, open '/schema.graphql')
See original GitHub issueHey all,
Trying to fool around with the graphql-nextjs example to get myself acquainted - but I am seeing problems in the console. In the console I am seeing
[Error: EACCES: permission denied, open '/schema.graphql'] {
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/schema.graphql'
}
This is a fresh install as of today. Using node 13.7.0 if this helps.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:8 (4 by maintainers)
Top Results From Across the Web
A complete guide to permissions in a GraphQL API
This guide shows you how to use GraphQL directives, GraphQL middleware resolvers, and the GraphQL shield library to implement permissions.
Read more >Error handling - Apollo GraphQL Docs
The request was parsed successfully and is valid against the server's schema, but the server couldn't resolve which operation to run.
Read more >Error when generating prisma: -- EACCES: permission denied ...
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...
Read more >Fullstack app with TypeScript, Next.js, Prisma & GraphQL
Learn how to build a fullstack app using TypeScript, PostgreSQL, Next.js, GraphQL and Prisma. In this article you are going to create a ......
Read more >How to fix the "Missing write access" error when using npm
sudo means we are running this command as root , the system super user. This is because we don't have permission to write...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I changed
__dirname
toprocess.cwd()
and it worked for me.@Edjevw12 do you mind submitting a PR with this solution 🙂