Hyperledger Composer CreatePeerCardAdmin正在引发解压缩错误



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

然而,在学习教程时,我遇到了以下错误。我不知道这意味着什么:

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并重新运行脚本以创建对等管理卡。

关于这个问题,github上有一些细节。

相关内容

  • 没有找到相关文章

最新更新