我正在尝试为我的区块链项目的Hyperledger作曲家启用JWT。
但是,在跟随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'
答案 0 :(得分:2)
您是否在Mac上运行?
在~/.comoposer
文件夹中某处存在隐藏文件时,已经看到此问题。
如果有卡,则需要保留,然后尝试composer card export
尝试将其导出,然后删除文件夹~/.composer
,然后重新运行脚本以创建Peer Admin卡。
此issue on github中有一些问题的详细信息。