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 09:22:10 浏览: 694
解决fatal:remote error:You can't push to git://github.com/username/*.git问题的办法
这个错误看起来是一个 Git 操作失败了。可能是由于网络连接问题,导致 Git 无法从远程仓库获取最新的代码。你可以尝试运行以下命令来解决这个问题:
```
git config --global http.postBuffer 524288000
```
这会将 Git 的缓冲区大小增加到 500 MB,以避免出现类似上述错误的问题。如果这个命令不起作用,你可以尝试删除 Yarn 缓存并重新运行 Yarn 命令:
```
yarn cache clean
yarn install
```
这将清除 Yarn 的本地缓存并重新安装项目的依赖项。希望这些方法能够帮助你解决问题。
阅读全文