macos

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


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.


Solution

  • You can change owner by :

    sudo chown -R ${LOGNAME}:staff /usr/local/lib/node_modules