Hyperledger Queries教程sh:1:eslint:not foud

时间:2017-08-18 17:34:21

标签: hyperledger-fabric hyperledger-composer

我现在几个小时都遇到这个错误,找不到合适的解决方案。我正在(https://hyperledger.github.io/composer/tutorials/queries.html)上进行查询教程,但是当我尝试运行npm test命令时,我收到此错误:

sh: 1: eslint: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! my-network@0.1.6 lint: 'eslint .'
npm ERR! spawn ENOENT

有关如何解决此错误的任何建议吗?

1 个答案:

答案 0 :(得分:0)

npm -g install eslint将有助于您的所有项目。但是在遵循开发人员教程时 - 请注意,您需要按照此处的说明安装所有预先请求 - > https://hyperledger.github.io/composer/unstable/installing/development-tools.html - 它提到了一个预先构建的prereqs脚本(prereqs-ubuntu.sh)脚本,你可以使用或查看(如果不是Ubuntu)。