#Issues with setting up React project (vite)
7 messages · Page 1 of 1 (latest)
Windows and Mac don't like it when you try to remotely change files inside the User folder. A lot of system files are linked to it and the operating system is very protective over it, even if you are the system admin.
My advice is to put all your projects in a different folder that isn't linked to the User directory. Ideally put them in a secondary drive or partition to make sure they don't interfere with the system files. @wet badger
Like @shut vine said, Users folder is a highly protected folder in an operating system and unless you have admin powers in the terminal, you are denied of doing anything in that memory zone.
Do you not have another drive or a user created folder where you can modify the contents of the folder without any admin creds ?
I mean this is my personal laptop and carrying around an external drive for development purposes seems like something I shouldn't have to do — I moved my development folder (contains all the projects) our of my [name] user folder to the documents folder but of course the error persists. @shut vine
Can you try to reinstall node using brew? or nvm?
Turns out it was a permissions problem with the npm cache folder; I had to run sudo chown -R 501:20 "/Users/ryan/.npm"
that would have been my other idea, but for some people reinstalling node helps. I also don't like fiddling with permissions in the home folder. I'm glad you made it work