首页 文章

在Ubuntu 16.04 ./createPeerAdminCard.sh中运行时失败

提问于
浏览
0

composer-cli v0.19.2成功安装仍然在运行时发生此错误 .

Hyperledger Fabric控件的仅开发脚本运行'createPeerAdminCard.sh'FABRIC_VERSION未设置,假设未设置hlfv11 FABRIC_START_TIMEOUT,假设为15(秒)

没有检测到composer-cli的版本,您需要在v0.19或更高版本安装composer-cli

1 回答

  • 1

    问题是,如果使用root或sudo安装composer,则非root用户无法使用它 .

    Composer的pre-reqs doc警告不要使用root或sudo,但安装文档本身实际上缺少警告 .

    我建议使用像 sudo npm uninstall -g composer-cli 这样的命令卸载composer-cli(以及playground,rest-server等),然后在不使用sudo的情况下重新安装 . 如果您对npm install有权限问题,那么在作曲家知识维基中有some notes .

相关问题