<100 subscribers
Share Dialog
Share Dialog
上次的问题:ECONNRESET
尝试运用思路一:下载元代码并运行,来看看能否解决上次的编程问题:ECONNRESET.
但是,在 yarn 的时候,会提示出现错误:
error Command failed.
Exit code: 128
Command: git
Arguments: clone https://github.com/ethereumjs/ethereumjs-abi.git /home/corror/.cache/yarn/v6/.tmp/c8a1082f4d0cf2d24e10ae2d0b9c32e3
Directory: /home/corror/web3-dev/hardhat-simple-storage-patrick/hardhat-simple-storage-fcc
Output:
Cloning into '/home/corror/.cache/yarn/v6/.tmp/c8a1082f4d0cf2d24e10ae2d0b9c32e3'...
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
核心是 error 的这句报错:
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
用自己的话翻译一下问题就是:
在运行 git clone 命令时,会需要用到 pull 函数,但是会出现 the remote end hung up unexpectedly 问题,怀疑就是网络问题。
尝试修改 git 的 postBuffer:
git config --global http.postBuffer 524288000
然后查看配置:
git config -l
之后运行 yarn, 但依然报错:
[2/4] Fetching packages...
error Command failed.
Exit code: 1
Command: git
Arguments: pull
Directory: /home/corror/.cache/yarn/v6/.tmp/c8a1082f4d0cf2d24e10ae2d0b9c32e3
Output:
fatal: unable to access 'https://github.com/ethereumjs/ethereumjs-abi.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
也就是说,问题在于:
当使用 git pull 命令时,会出现 unable to access 的问题,依然是因为使用 pull 函数时,会出现网络问题。
于是我决定将这个问题当做样本,来去 Stack Overflow 上提问。
https://stackoverflow.com/questions/73604144/network-error-causes-git-push-error-unable-to-access
如上链接所示,我尝试再一次将这个问题在网上问了出来,并表示这可能是 proxy 的配置问题。所以,想问问看可以如何解决。
如果无法解决的话,可以考虑让电脑恢复出厂设置。
之后,我打开了在 Github 上的提问,发现问题有了新进展,有一个回答许能解决我的问题。链接如下所示:
之后可以参考试着做一下。
上次的问题:ECONNRESET
尝试运用思路一:下载元代码并运行,来看看能否解决上次的编程问题:ECONNRESET.
但是,在 yarn 的时候,会提示出现错误:
error Command failed.
Exit code: 128
Command: git
Arguments: clone https://github.com/ethereumjs/ethereumjs-abi.git /home/corror/.cache/yarn/v6/.tmp/c8a1082f4d0cf2d24e10ae2d0b9c32e3
Directory: /home/corror/web3-dev/hardhat-simple-storage-patrick/hardhat-simple-storage-fcc
Output:
Cloning into '/home/corror/.cache/yarn/v6/.tmp/c8a1082f4d0cf2d24e10ae2d0b9c32e3'...
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
核心是 error 的这句报错:
error: RPC failed; curl 56 GnuTLS recv error (-54): Error in the pull function.
用自己的话翻译一下问题就是:
在运行 git clone 命令时,会需要用到 pull 函数,但是会出现 the remote end hung up unexpectedly 问题,怀疑就是网络问题。
尝试修改 git 的 postBuffer:
git config --global http.postBuffer 524288000
然后查看配置:
git config -l
之后运行 yarn, 但依然报错:
[2/4] Fetching packages...
error Command failed.
Exit code: 1
Command: git
Arguments: pull
Directory: /home/corror/.cache/yarn/v6/.tmp/c8a1082f4d0cf2d24e10ae2d0b9c32e3
Output:
fatal: unable to access 'https://github.com/ethereumjs/ethereumjs-abi.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
也就是说,问题在于:
当使用 git pull 命令时,会出现 unable to access 的问题,依然是因为使用 pull 函数时,会出现网络问题。
于是我决定将这个问题当做样本,来去 Stack Overflow 上提问。
https://stackoverflow.com/questions/73604144/network-error-causes-git-push-error-unable-to-access
如上链接所示,我尝试再一次将这个问题在网上问了出来,并表示这可能是 proxy 的配置问题。所以,想问问看可以如何解决。
如果无法解决的话,可以考虑让电脑恢复出厂设置。
之后,我打开了在 Github 上的提问,发现问题有了新进展,有一个回答许能解决我的问题。链接如下所示:
之后可以参考试着做一下。
No comments yet