permission denied, open '/Users/<user>/.epicshop/data.json'
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:
Terminal
My system is MacOs npm version: 10.9.0 node vesrion: v23.0.0 git version: 2.33.0
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!
Thanks for the answer. I removed the .epicshop directory and did the setup from scratch. It got fixed.
Glad you got it working! Sorry for the trouble.