fox93
fox93

Reputation: 1

Can't create/save any new files in VSCode on Mac Catalina and keep getting a read-only file system error

Failed to save 'Untitled-1': Unable to write file (Unknown (FileSystemError): Error: EROFS: read-only file system, open '/Untitled-1.html')

Upvotes: 0

Views: 6341

Answers (1)

crdrisko
crdrisko

Reputation: 484

I believe the issue you’re running into is you’re trying to create files in the root (/) directory. One of the changes Apple made when they released Catalina was that the root directory is Read-Only, which explains the error you’re seeing.

The reason for this is enhanced security and you can read more about it here. I would recommend you change to your home (~/) directory and make all of your files in there. This should take care of all file system errors you’re currently experiencing.

Upvotes: 2

Related Questions