When you have lately upgraded your MacOS working system, chances are you’ll get the next error in your terminal when putting in some Homebrew packages:
Error: Permission denied @ apply2files - /usr/native/lib/node_modules/expo-cli/node_modules/.bin/detect-libc
How you can clear up the Permissions Denied downside
Merely run the next command in your terminal:
sudo chown -R $(whoami):admin /usr/native/*
&& sudo chmod -R g+rwx /usr/native/*
Or change the consumer instantly:
sudo chown -R ${LOGNAME}:workers /usr/native/lib/node_modules