0👍
To resolve this issue for me was the same as @user1933387. I had formatted my computer and changed the naming convention of where my folder was.
for example:
Old folder was called: /Users/jimmy/...
New folder was renamed to: /Users/jim/...
/Users/jimmy no longer exists and it couldn’t write to it so it throws the permissions error rather than a directory not found. Confusing when trying to dig into this, especially if you don’t notice error right after a change like that but if the path doesn’t exist, this is the error you get.
👤jAC
Source:stackexchange.com