我按照说明在Ubuntu 18.04上安装了hyperledger工具。由于权限问题,我不得不更改node_modules目录。
我可以运行这些工具,但composer cli除外(composer cli:command not found(。
安装日志:
$ 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可能会遇到意外错误。安装预设备