无法启动 composer-cli

Can not start composer-cli

我关注了 instructions to install the hyperledger tools on Ubuntu 18.04. Due to a permission problem I had to change 和 node_modules 目录。

我可以 运行 工具,除了 composer-cli(composer-cli:找不到命令)。

安装日志:

$ npm install -g composer-cli@0.20
...

WARN engine fabric-client@1.2.1: wanted: {"node":"^8.9.0","npm":"^5.5.1"} (current: {"node":"8.10.0","npm":"3.5.2"})
    /home/asset-tracker/.npm-global/bin/composer -> /home/asset-tracker/.npm-global/lib/node_modules/composer-cli/cli.js
    /home/asset-tracker/.npm-global/lib
    └── composer-cli@0.20.4 

npm WARN optional Skipping failed optional dependency /composer-cli/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.4

好吧,如日志片段所示。我觉得你应该尝试升级 npm 的版本。

hyperledger-composer 支持 Ubuntu Linux 14.04 / 16.04 LTS(均为 64 位)。安装到 18.04 可能会遇到意外错误。 installing prereqs