我使用的是 Windows 10(64 位),并且我似乎已安装所有必备组件。
但是,在运行命令 curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash
时在 Git-Bash 上,我会收到以下错误:
$ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1205 0 1205 0 0 976 0 --:--:-- 0:00:01 --:--:-- 988
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
bash: line 12: cd: release/mingw32_nt-10.0-wow-i686: No such file or directory
sh: download-dockerimages.sh: No such file or directory
最佳答案
它确实可以在我的 Windows 10(使用 Git 2.13)上运行。
再试一次,但首先要简化路径。
在 CMD 中,键入:
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set GH=C:\path\to\Git\2.13
set PATH=%GH%\bin;%GH%\usr\bin;%GH%\mingw64\bin;%PATH%
然后输入“bash
”,并在 bash session 中再次尝试 curl
命令。
关于git-bash - 尝试提取 super 账本工件时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44345077/