You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~ ─> ><}}*> brew update
Error: /usr/local is not writable. You should change the ownership
and permissions of /usr/local back to your user account:
sudo chown -R $(whoami) /usr/local
那麼直接跟著上面的說明,使用指令
sudo chown -R $(whoami) /usr/local
如果你的 bash shell 是用 fish 的話,還會出現一個問題
~ ─> ><}}*> sudo chown -R $(whoami):admin /usr/local/
$(...) is not supported. In fish, please use '(whoami)'.
fish: sudo chown -R $(whoami):admin /usr/local
意思就是 fish 不支援 $ 符號,故只要把 $ 拿掉即可。
~ ─> ><}}*> sudo chown -R (whoami) /usr/local/
然後就會要你輸入密碼,就完成了解決步驟
接下來只要重新下 brew update 即可
~ ─> ><}}*> brew update
即可完成更新。
接下來就可以安裝你想安裝的新套件囉!(ex: Yarn)
The text was updated successfully, but these errors were encountered:
步驟
以我的 Terminal 為例,出現這個 Error 的時候出現以下訊息:
那麼直接跟著上面的說明,使用指令
如果你的 bash shell 是用 fish 的話,還會出現一個問題
意思就是 fish 不支援 $ 符號,故只要把 $ 拿掉即可。
然後就會要你輸入密碼,就完成了解決步驟
接下來只要重新下 brew update 即可
即可完成更新。
接下來就可以安裝你想安裝的新套件囉!(ex: Yarn)
The text was updated successfully, but these errors were encountered: