hyperledger-fabric - HyperLedger Fabric 示例 - 在 Windows 10 上下载特定于平台的结构二进制文件
问题描述
我正在Windows 10 上从https://hyperledger-fabric.readthedocs.io/en/release-2.0/install.html安装 Fabric-Samples。
当我尝试运行命令时curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s
,我在下载二进制文件时遇到错误。请从下面的终端找到转储。我从完成克隆的 fabric-samples 文件夹中运行它。
Clone hyperledger/fabric-samples repo
===> Checking out v2.0.0 of hyperledger/fabric-samples
error: pathspec 'v2.0.0' did not match any file(s) known to git
Pull Hyperledger Fabric binaries
===> Downloading version 2.0.0 platform specific fabric binaries
===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.0.0/hyperledger-fabric-msys_nt-10.0-18362-amd64-2.0.0.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 t0 a r . e x e0: E r r o r0 o-p-e:n-i-n:g- -a r-c-:h-i-v:e-:- F-a-i:l-e-d: -t-o o p e n0 '\\.\tape0'
100 9 100 9 0 0 9 0 0:00:01 0:00:01 --:--:-- 4
(23) Failed writing body
==> There was an error downloading the binary file.
------> 2.0.0 platform specific fabric binary is not available to download <----
但是当我在 Git-Cmd 中运行它时(如HyperLedger-downloading Platform-specific Binaries on Windows 10中的建议),我得到以下信息:
Clone hyperledger/fabric-samples repo
===> Checking out v2.0.0 of hyperledger/fabric-samples
error: pathspec 'v2.0.0' did not match any file(s) known to git
Pull Hyperledger Fabric binaries
===> Downloading version 2.0.0 platform specific fabric binaries
===> Downloading: https://github.com/hyperledger/fabric/releases/download/v2.0.0/hyperledger-fabric-windows-amd64-2.0.0.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0tar.exe: Error opening archive: Failed to open '\\.\tape0'
100 656 100 656 0 0 328 0 0:00:02 0:00:02 --:--:-- 244
0 64.3M 0 16943 0 0 2420 0 7:44:40 0:00:07 7:44:33 3929
curl: (23) Failed writing body (0 != 16384)
==> There was an error downloading the binary file.
------> 2.0.0 platform specific fabric binary is not available to download <----
我在 fabric-samples 文件夹中创建了 /bin 和 /config 文件夹。请让我知道我在这里做错了什么。
提前致谢。
解决方案
尝试明确指定最新的 Fabric 版本:
curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap.sh | bash -s 2.1.0
推荐阅读
- java - 适配器 API 中的类命名
- reactjs - 无法绑定到导入的函数。错误未定义
- php - 在 wordpress 网站上更改语言
- android - Xamarin:带有计时器的Android Widget,当应用程序被杀死时停止
- node.js - 通过 Swagger 和 Express 验证请求正文变量
- html - 删除序言中的单引号(Html - Prolog)
- javascript - 在 gulp 任务中执行多个异步操作?
- javascript - 嵌套过渡期间NodeJS错误渲染
- sapui5 - Fiori Launchpad 插件
- ruby-on-rails - 如何在活动作业重试中删除回溯?