Skip to content

[Solved] Permission denied @ apply2files – /usr/local/lib/node_modules/expo-cli/node_modules/extglob/lib

If you have recently upgraded your MacOS operating system, you may get the following error in your terminal when installing some Homebrew packages:

Error: Permission denied @ apply2files - /usr/local/lib/node_modules/expo-cli/node_modules/.bin/detect-libc

How to solve the Permissions Denied problem

Simply run the following command in your terminal:

sudo chown -R $(whoami):admin /usr/local/* \ && sudo chmod -R g+rwx /usr/local/*
Code language: Bash (bash)

Or change the user directly:

sudo chown -R ${LOGNAME}:staff /usr/local/lib/node_modules
Code language: Bash (bash)

See also  How to Copy Files from Docker Container to Host
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x