使用hyperledger composer v16.06部署业务网络

时间:2018-04-19 03:12:26

标签: hyperledger-fabric hyperledger-composer

我是hyperledger作曲家的初学者。我使用hyperledger-composer v16.06。 在部署业务网络的步骤中:

composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName tutorial-network

⠋ Installing runtime for business network tutorial-network. This may take a minu
⠙ Installing runtime for business network tutorial-network. This may take a minu
⠹ Installing runtime for business network tutorial-network. This may take a minu
✖ Installing runtime for business network tutorial-network. This may take a minute...
Error: Error trying install composer runtime. Error: The Composer runtime failed to install on 1 or more peers
Command failed

然后我尝试使用:

  

curl -sSL https://hyperledger.github.io/composer/install-hlfv1.sh |   bash的

但显示语法错误:

curl -sSL https://hyperledger.github.io/composer/install-hlfv1.sh | bash
bash: line 1: syntax error near unexpected token `newline'
bash: line 1: `<!doctype html>'

谢谢!

1 个答案:

答案 0 :(得分:2)

v16.0.6是Composer的旧版本,支持有限。如果您不熟悉Composer,我建议您安装以下步骤,安装Composer v0.19和简单的Fabric v1.1:

  1. 卸载Composer(composer-cli)和composer-playground,composer-rest-server generator-hyperledger-composer(如果已安装)。
    1. 安装Composer开发pre-requisites
    2. 安装Composer Development tools
    3. 完成Developer Tutorial