node.js - 无法安装 Hyperledgercomposer-cli

标签 node.js hyperledger-fabric hyperledger hyperledger-composer

我开始按照这些 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/

相关文章:

node.js - 覆盖冲突文件链接node.js时出错

hyperledger-fabric - Hyperledger Fabric 私有(private)数据集合中的私有(private)数据活跃度设置

node.js - 如何使用 ChainCode Mock Stub 测试 Node js 链码

ssl - 在 Hyperledger Fabric 中使用 TLS 后如何验证安全通信

ubuntu - 如何解决此错误?错误 : failed to create deliver client: failed to create new connection: context deadline exceeded

node.js - 在本地计算机上开发 NodeJS 应用程序时出现 SSL 错误

javascript - 如何使用 Amazon EC2 和 heroku 通过 node.js 创建子页面

node.js - 使用node.js os.cpus()来检测用户空闲时间?

Docker overlay2 占用磁盘空间

hyperledger-fabric - 运行composer-rest-server命令后composer出现"Cannot GET/explorer"错误