Rez*_*eza 21 macos homebrew carthage
我想使用brew install carthage
命令在我的Mac OS上安装carthage .但是,我收到以下错误:
touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
touch: /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask/.git/FETCH_HEAD: Permission denied
touch: /usr/local/Homebrew/Library/Taps/dart-lang/homebrew-dart/.git/FETCH_HEAD: Permission denied
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/.git/FETCH_HEAD: Permission denied
fatal: Unable to create '/usr/local/Homebrew/.git/index.lock': Permission denied
error: could not lock config file .git/config: Permission denied
Warning: carthage 0.26.2 is already installed, it's just not linked.
You can use `brew link carthage` to link this version.
Run Code Online (Sandbox Code Playgroud)
我使用时也遇到以下错误sudo brew install carthage
:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
Run Code Online (Sandbox Code Playgroud)
你能告诉我这是什么问题吗?提前致谢.
小智 62
在High Sierra中,运行命令:
sudo chown -R $(whoami) $(brew --prefix)/*
Run Code Online (Sandbox Code Playgroud)
小智 18
这对我有用:macOS Catalina 10.15.1
sudo chown -R $(whoami):admin /usr/local/* && sudo chmod -R g+rwx /usr/local/*
Run Code Online (Sandbox Code Playgroud)
Rez*_*eza 10
就我而言,此命令有效:
sudo chown -R $(whoami) $(brew --prefix)/*
Run Code Online (Sandbox Code Playgroud)
但是,还有一种更简单的方式来安装Carthage,而不是命令行方式。从此链接下载最新的软件包并以向导方式将其安装在Mac上就足够了。
https://github.com/Carthage/Carthage/releases
归档时间: |
|
查看次数: |
25096 次 |
最近记录: |