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

问题描述 投票:2回答:1

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

composer网络启动-c PeerAdmin @ hlfv1 -n Airlines8 -V 0.0.1 -A Admin -S adminpw

日志

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: [email protected]

Command succeeded

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

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

错误日志:

Error: Required file not found: connection.json
Command failed
hyperledger-fabric blockchain hyperledger hyperledger-composer
1个回答
1
投票

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

composer card import -f [email protected]

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

© www.soinside.com 2019 - 2024. All rights reserved.