Ubuntu上的Hyperledger composer CLI安装问题

时间:2019-02-07 14:21:39

标签: amazon-ec2 hyperledger-composer

我使用以下命令在AWS ubuntu实例上安装了composer: npm i -g @composer-cli@0.19

在运行以下命令以检查安装时:composer --help

我收到此错误 composer command not found

2 个答案:

答案 0 :(得分:0)

您使用的npm是哪个版本? Composer仅正式支持npm v5.xnode v8.9.x。特别是,请确保您没有运行npm v6或任何更高版本的节点,例如node v9node v10

答案 1 :(得分:0)

If you see this Link for the installation of the development environment the command for composer installation is:

npm install -g composer-cli@0.19

but you are using

npm i -g @composer-cli@0.19

follow the instructions provided in above link, it will work perfectly fine.