react-fundamentals icon indicating copy to clipboard operation
react-fundamentals copied to clipboard

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

Open maliheNoroozi opened this issue 1 year ago • 2 comments

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

maliheNoroozi avatar Oct 19 '24 14:10 maliheNoroozi

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!

kentcdodds avatar Oct 20 '24 10:10 kentcdodds

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

maliheNoroozi avatar Oct 20 '24 12:10 maliheNoroozi

Glad you got it working! Sorry for the trouble.

kentcdodds avatar Oct 22 '24 23:10 kentcdodds