mac系統使用homebrew 無法安裝nodejs解決方案

飛向Hadoop發表於2017-05-12

各種查,說是許可權問題,但是賦權之後還是一樣的錯誤。

後來終於在stackoverflow 上找到了解決方案,太不容易了。。。

http://stackoverflow.com/questions/28460953/homebrew-install-issue-after-computer-restoration

Alex-Taipales-MacBook:Library alextaipale$ git remote -v
origin  https://github.com/Homebrew/homebrew (fetch)
origin  https://github.com/Homebrew/homebrew (push)
Alex-Taipales-MacBook:Library alextaipale$ cd /usr
Alex-Taipales-MacBook:usr alextaipale$ sudo rm -rf local
Password:
Alex-Taipales-MacBook:usr alextaipale$ sudo git clone https://github.com/Homebrew/homebrew.git
Cloning into 'homebrew'...
remote: Counting objects: 230841, done.
remote: Compressing objects: 100% (18/18), done.
remote: Total 230841 (delta 8), reused 10 (delta 7)
Receiving objects: 100% (230841/230841), 53.17 MiB | 716.00 KiB/s, done.
Resolving deltas: 100% (168934/168934), done.
Checking connectivity... done.
Alex-Taipales-MacBook:usr alextaipale$ sudo mv homebrew local
Alex-Taipales-MacBook:usr alextaipale$ sudo chown -R $(whoami) /usr/local


相關文章