我刚刚在笔记本电脑上设置了brew,并试图安装git,但是出现了以下错误:
==> Installing dependencies for git: gettext and pcre2
==> Installing git dependency: gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.mojave.bottle.tar.gz
Warning: Failed to create the file
Warning: /Users/kmalhotraLibrary/Caches/Homebrew/downloads/20fb183d8882abab5874
Warning: 937646456a6d73fcd3510ec65a0b2a54fdfeb0174519--gettext-0.19.8.1.mojave.
Warning: bottle.tar.gz.incomplete: No such file or directory
curl: (23) Failed writing body (0 != 15557)
Error: Failed to download resource "gettext"
Download failed: https://homebrew.bintray.com/bottles/gettext-0.19.8.1.mojave.bottle.tar.gz
正在为所有库安装时出现此错误,并且您可以看到它正在尝试创建文件/ Users / kmalhotraLibrary / Caches / Homebrew / downloads / 20fb183d8882abab5874(由于某种原因而没有) kmalhotra和图书馆之间的/
。
但是,当我执行brew --cache
时,我得到:
/Users/kmalhotra/Library/Caches/Homebre
,其中包含/
有人可以告诉我如何解决此错误吗?