gls導入コマンド
brew install coreutils
↑を実行したときに
Error: Can’t create update lock in /usr/local/var/homebrew/locks!
Fix permissions by running:
sudo chown -R $(whoami) /usr/local/var/homebrew
Warning: You are using macOS 10.15.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew’s GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience, as you are running this pre-release version.
とエラーが出た場合は、
エラーメッセージを見る限り権限がないためにエラーが発生しているようなので、対象のフォルダに権限を付与することで解決できそうだったので試してみました。
使うコマンド
sudo chown -R `whoami` /usr/local
参考URL:https://qiita.com/silverskyvicto/items/4b87ceaad3f526a958b9