vercel / next.js

The React Framework
https://nextjs.org
MIT License
126.75k stars 26.94k forks source link

Stuck with a Problem of access permission denied #8908

Closed ashu8912 closed 5 years ago

ashu8912 commented 5 years ago

Bug report

Describe the bug

UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, unlink '/Users/ashughildiyal/Desktop/WebDevelopment/VipWebApp/VIP-Intern-Alok/Backend/.next/server/pages-manifest.json' when i run npm start i get the above error.. i have to run my server with sudo npm start which i dont want to do.

To Reproduce

running the project with npm start leads to this problem

System information

timneutkens commented 5 years ago

Potentially you run next build under a different user than next start? 🤔 Or the permissions on the files are modified between build and start. Either way we can't really investigate this as it happens on your machine.

timneutkens commented 5 years ago

I'll close this as this is better suited for Spectrum:

# Question about Next.js

GitHub Issues are reserved for Bug reports and Feature requests. The best place to get your question answered is to post it on https://spectrum.chat/next-js.
ashu8912 commented 5 years ago

No this is not my machine specific problem even my other team members has to do sudo. And yes i asked this on spectrum but couldn't get any answer there.

stilistik commented 4 years ago

This happened to me when i mounted my next app project in a docker container and then later tried to run it outside the docker again.

sudo chown -R $USER <project-dir> solved this for me

balazsorban44 commented 2 years ago

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.