Hyperledger Composer CreatePeerCardAdmin 在解压缩时抛出错误

Hyperledger Composer CreatePeerCardAdmin is throwing error for unzip

我正在尝试为我的区块链项目启用 JWT for hyperledger composer。

然而,在遵循 tutorial 时,我遇到了以下错误。我不确定这是什么意思:

Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html

当运行 ./createPeerAdminCard.sh下面是准确的输出:

Development only script for Hyperledger Fabric control
Running 'createPeerAdminCard.sh'
FABRIC_VERSION is set to 'hlfv11'
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)

Using composer-cli at v0.19.5

Successfully created business network card file to
        Output file: /tmp/PeerAdmin@hlfv1.card

Command succeeded


Successfully imported business network card
        Card file: /tmp/PeerAdmin@hlfv1.card
        Card name: PeerAdmin@hlfv1

Command succeeded

Error: Can't find end of central directory : is this a zip file ? If it is, see http://stuk.github.io/jszip/documentation/howto/read_zip.html
Command failed

Hyperledger Composer PeerAdmin card has been imported, host of fabric specified as 'localhost'

你 运行 正在 Mac 吗?

~/.comoposer 文件夹中某处存在隐藏文件时,就会出现此问题。

如果您有需要保留的卡片,请尝试 composer card export 尝试导出它们,然后删除文件夹 ~/.composer 并重新 运行 脚本以创建 Peer管理卡。

这个issue on github中有一些问题的细节。