Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permission denied, open '/Users/<user>/.epicshop/data.json' #402

Closed
maliheNoroozi opened this issue Oct 19, 2024 · 3 comments
Closed

permission denied, open '/Users/<user>/.epicshop/data.json' #402

maliheNoroozi opened this issue Oct 19, 2024 · 3 comments

Comments

@maliheNoroozi
Copy link

I cloned react-fundamentals and tried to ran the setup command. While runing setup command it gave permission error, then I ran it with sudo, and it finished setting up.
Now that I am running npm run start, and open the browser, I am getting this error

Browser:
Screenshot 2024-10-19 at 16 50 48

Terminal
Screenshot 2024-10-19 at 16 49 45

My system is MacOs
npm version: 10.9.0
node vesrion: v23.0.0
git version: 2.33.0

@kentcdodds
Copy link
Member

Huh, this is a new one. You should probably have access to your home directory. ChatGPT says you can run this to get access:

sudo chmod -R 755 /Users/malihenorouzi/.epicshop

Note: this requires sudo so it will ask for your password.

I hope that helps!

@maliheNoroozi
Copy link
Author

maliheNoroozi commented Oct 20, 2024

Thanks for the answer. I removed the .epicshop directory and did the setup from scratch. It got fixed.

@kentcdodds
Copy link
Member

Glad you got it working! Sorry for the trouble.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants