composer卡导入错误返回“找不到所需的文件:connection.json”

时间:2019-11-27 13:46:03

标签: hyperledger-fabric blockchain hyperledger hyperledger-composer

我使用以下命令为企业网络创建了管理卡

  

计算机网络启动-c PeerAdmin @ hlfv1 -n Airlines8 -V 0.0.1 -A管理员-S adminpw

日志

Private Sub Groepskoptekst1_Format(Cancel As Integer, FormatCount As Integer)
    If Me.Rit = 0 Or IsNull(Me.Rit) Then
        Me.lblDatum.Visible = True
        Me.Datum.Visible = True
        Me.Rit.Visible = False
        Me.lblRit.Visible = False
        Me.GeenRit.Visible = True
        Me.Traject.Visible = False
        Me.lblKm.Visible = False
    Else
        Me.lblDatum.Visible = True
        Me.Datum.Visible = True
        Me.Rit.Visible = True
        Me.lblRit.Visible = True
        Me.GeenRit.Visible = False
        Me.Traject.Visible = True
        Me.lblKm.Visible = True
    End If

End Sub

要导入,我运行以下命令,但出现错误

  

composer卡导入-f Airlines8 -c admin @ airlines8

错误日志:

Starting business network airlines8 at version 0.0.1

Processing these Network Admins: 
userName: admin

✔ Starting business network definition. This may take a minute...
Successfully created business network card:
Filename: admin@airlines8.card

Command succeeded

1 个答案:

答案 0 :(得分:1)

您输入卡的命令不正确,请尝试

composer card import -f admin@airlines8.card

-f标志定义要导入的卡文件的名称。