Member-only story

Mac VS code error — permission denied writing to file!

Ankit Maheshwari
2 min readNov 27, 2019

--

The solution is to Give the folder 777 permission.

My articles are open for everyone; non-member readers can read the article by clicking this link.

In the terminal, the command to use to change file permission is “ chmod “.

In short, “chmod 777” means making the file readable, writable and executable by everyone.

sudo chmod -R 777 <project_dir_name>

In my 👨‍💻 case I solved it by running command in terminal like this …👇

sudo chmod -R 777 ankitmaheshwari/git/hello-world

Learn More:

--

--

Ankit Maheshwari
Ankit Maheshwari

Responses (3)