我开始按照这些 instructions 在 Hyperledger Composer 上构建一个应用程序,但是当我运行时:
$ ./createPeerAdminCard.sh
我明白了:
"Development only script for Hyperledger Fabric control
Running 'createPeerAdminCard.sh'
FABRIC_VERSION is unset, assuming hlfv11
FABRIC_START_TIMEOUT is unset, assuming 15 (seconds)
No version of composer-cli has been detected, you need to install composer-cli at v0.19 or higher."
但是,我已经使用以下方式安装了它:
$ npm install -g composer-cli
我有:
+ <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="eb8884869b84988e99c6888782abdbc5dad2c5d9" rel="noreferrer noopener nofollow">[email protected]</a> added 568 packages from 473 contributors in 58.747s
请帮助我!
最佳答案
您可以尝试像这样设置PATH
吗,
export PATH="/usr/local/share/npm/bin:$PATH"
完成后,尝试再次执行脚本,
$ ./createPeerAdminCard.sh
希望这有帮助!
关于node.js - 无法安装 Hyperledgercomposer-cli,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50039532/