I’m running command from the CLI
npm run dev
And gettind this error:
[email protected] dev
vite
failed to load config from /Users/Desktop/my-react-app/vite.config.js
error when starting dev server:
Error: EACCES: permission denied, open ‘/Users/Desktop/my-react-app/vite.config.js.timestamp-1717151809885-fc6a42bbcbff9.mjs’
also every time I don’t have permission do something, so I have to use sudo.
Why?
Is there any way I can configure my Mac correctly?
I am using sudo everytime.