error Command failed. Exit code: 128 Command: git Arguments: fetch --tags Directory: C:\Users\Administrator\AppData\Local\Yarn\Cache\v6\.tmp\c8a1082f4d0cf2d24e10ae2d0b9c32e3 Output: error: RPC failed; curl 28 Recv failure: Connection was reset fatal: expected flush after ref listing info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. Error: Couldn't find match for "91431fa" in "refs/heads/main" for "https://github.com/oscario2/wp5-cra-polyfill.git". at MessageError.ExtendableBuiltin (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:721:66) at new MessageError (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:750:123) at Git.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:51246:15) at Generator.next (<anonymous>) at step (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:310:30) at C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:321:13
时间: 2023-08-27 17:22:10 浏览: 77
这个错误看起来是一个 Git 操作失败了。可能是由于网络连接问题,导致 Git 无法从远程仓库获取最新的代码。你可以尝试运行以下命令来解决这个问题:
```
git config --global http.postBuffer 524288000
```
这会将 Git 的缓冲区大小增加到 500 MB,以避免出现类似上述错误的问题。如果这个命令不起作用,你可以尝试删除 Yarn 缓存并重新运行 Yarn 命令:
```
yarn cache clean
yarn install
```
这将清除 Yarn 的本地缓存并重新安装项目的依赖项。希望这些方法能够帮助你解决问题。
相关问题
error Command failed Exit code: 128 Command: git --heads https://github.com/Michaelzinsmaier/CurvedLines.git Arguments: Is-remote --tags
这个错误提示表明在运行 `yarn` 命令时,出现了与 Git 相关的问题。具体来说,它尝试使用 Git 命令来获取远程仓库的信息,但似乎出现了异常。
要解决这个问题,你可以尝试以下几个步骤:
1. 确保你已经正确安装了 Git。你可以在命令行中运行 `git --version` 来验证是否已经安装。
2. 如果你已经安装了 Git,请确保 Git 的路径已经正确配置到系统环境变量中。可以通过运行 `git` 命令来验证路径是否正确。
3. 如果 Git 已经安装和配置正确,那么可能是由于网络问题导致无法访问远程仓库。请确保你的网络连接正常,并且没有任何防火墙或代理设置导致访问受限。
如果上述步骤都没有解决问题,你可以尝试手动执行 Git 命令来查看是否能够获取远程仓库的信息。可以尝试运行以下命令:
```
git ls-remote https://github.com/Michaelzinsmaier/CurvedLines.git
```
如果这个命令也失败了,那么可能是由于远程仓库不存在或无法访问导致的。你可以确认一下远程仓库的URL是否正确,并且确保你有访问该仓库的权限。
希望这些信息能够帮助你解决问题。如果还有其他疑问,请随时提问。
brew install ta-lib 报错Error:Command failed with exit 128: git
这个错误通常是由于下载 ta-lib 时遇到问题所致。您可以尝试以下步骤来解决该问题:
1. 确保您的 Homebrew 是最新版本:
```
brew update
```
2. 确认您已经安装了 Xcode Command Line Tools:
```
xcode-select --install
```
3. 尝试清理 Homebrew 缓存并重新安装 ta-lib:
```
brew cleanup
brew install ta-lib
```
如果以上步骤不能解决问题,请尝试手动安装 ta-lib:
1. 前往 ta-lib 的官方网站:http://ta-lib.org/hdr_dw.html,下载适用于您的操作系统的 tar 包。
2. 解压 tar 包,并进入解压后的目录。
3. 运行以下命令编译 ta-lib:
```
./configure --prefix=/usr
make
sudo make install
```
4. 安装成功后,运行以下命令确认 ta-lib 是否已正确安装:
```
ta-lib-config --libs
```
如果输出类似于以下内容,则 ta-lib 已安装成功:
```
-L/usr/lib -lta_lib
```