Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission denied @ apply2files - /usr/local/lib/node_modules/expo-cli/node_modules/extglob/lib/.DS_Store?

Tags:

macos

I was installing the starship via homebrew but I am getting this error:

Permission denied @ apply2files - /usr/local/lib/node_modules/expo-cli/node_modules/extglob/lib/.DS_Store 

Any solution for fixing this error?

Thanks.

like image 299
Kishore S Avatar asked May 19 '20 19:05

Kishore S


2 Answers

This issue appeared after upgrading macOS to Mojave 10.14.X onwards.

Therefore, you need to reset the permissions in /usr/local:

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

Source: https://github.com/Homebrew/homebrew-core/issues/45009#issuecomment-543795948

like image 87
Jerry Chong Avatar answered Oct 16 '22 23:10

Jerry Chong


You can change owner by :

sudo chown -R ${LOGNAME}:staff /usr/local/lib/node_modules 
like image 38
Philippe Avatar answered Oct 17 '22 01:10

Philippe