【发布时间】:2017-12-12 22:46:12
【问题描述】:
我正在尝试在一台新机器上安装 yarn,在我输入 brew install yarn 后,我的命令行输出如下:
touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-
apache/.git/FETCH_HEAD: Permission denied
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-
core/.git/FETCH_HEAD: Permission denied
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-
dupes/.git/FETCH_HEAD: Permission denied
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-
php/.git/FETCH_HEAD: Permission denied
touch: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-
versions/.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
==> Installing dependencies for yarn: icu4c, node
==> Installing yarn dependency: icu4c
==> Downloading https://homebrew.bintray.com/bottles/icu4c-
60.1.high_sierra.bottle.t######################################################################## 100.0%
==> Pouring icu4c-60.1.high_sierra.bottle.tar.gz
Error: Permission denied @ unlink_internal - /usr/local/opt/icu4c
提前谢谢!
【问题讨论】:
标签: ruby-on-rails node.js npm yarnpkg