zsh: permission denied:

I am using macOS Catalina and trying to install flutter. By following flutters docs I have to update my path by editing $HOME/.zshrc but this request is met with zsh: permission denied: how do I gain access to make the necessary edit

MacBook Pro 13", macOS 10.15

Posted on Nov 5, 2019 7:21 AM

Reply
1 reply

Nov 5, 2019 7:33 AM in response to sueq20

You did not mention the editor that you are using on $HOME/.zshrc, but it may require that you visit System Preferences : Security & Privacy : Privacy panel. Select Full Disk Access, and add [+] your editor as √.


You will also need to create and edit a $HOME/.zprofile so that the PATH is also set when you launch the Terminal and Zsh reads the .zprofile as a login shell. Otherwise $HOME/.zshrc is not read during the Terminal launch process.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

zsh: permission denied:

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.