Ошибка в плагине "gulp-shell" во время тестирования Hyperledger Fabric Client SDK для Node.js - PullRequest
0 голосов
/ 22 мая 2019

Я пытаюсь собрать и протестировать SDK для node.js с помощью команды "npm-test", как в файле readme на https://github.com/hyperledger/fabric-sdk-node. Команда сообщает об ошибке в плагине "gulp-shell" и когда он говорит, что тест не пройден.

Мне нужно, чтобы он работал с node.js в фабрике hyperledger. Я использую Windows 10, node.js 8.9.4, npm 5.6.0. Также я уже установил gulp с помощью команды "npm install -g gulp" и зависимостей с помощью "npm install".

C:\hyperledger_fabric\fabric-sdk-node-release-1.4\test\unit\logger.js
   28:1  warning  Unexpected console statement  no-console
   32:2  warning  Unexpected console statement  no-console
   63:2  warning  Unexpected console statement  no-console
   73:2  warning  Unexpected console statement  no-console
  190:2  warning  Unexpected console statement  no-console
  192:2  warning  Unexpected console statement  no-console
  237:2  warning  Unexpected console statement  no-console
  247:2  warning  Unexpected console statement  no-console
  258:2  warning  Unexpected console statement  no-console
  287:2  warning  Unexpected console statement  no-console

✖ 10 problems (0 errors, 10 warnings)

[10:17:37] Finished 'eslint' after 23 s
[10:17:37] Starting 'lint'...
[10:17:37] Finished 'lint' after 198 μs
[10:17:37] Starting 'compile'...
[10:17:37] npm run compile
"C:\Users\Fogyy" не является внутренней или внешней
командой, исполняемой программой или пакетным файлом.
[10:17:37] 'compile' errored after 88 ms
[10:17:37] Error in plugin "gulp-shell"
Message:
    Command `npm run compile` failed with exit code 1
[10:17:37] 'run-test-headless' errored after 24 s
[10:17:37] Error in plugin "run-sequence(compile)"
Error
    at finish (C:\hyperledger_fabric\fabric-sdk-node-release-1.4\node_modules\run-sequence\index.js:82:12)
    at Gulp.onError (C:\hyperledger_fabric\fabric-sdk-node-release-1.4\node_modules\run-sequence\index.js:93:3)
    at emitOne (events.js:121:20)
    at Gulp.emit (events.js:211:7)
    at Gulp.Orchestrator._emitTaskDone (C:\hyperledger_fabric\fabric-sdk-node-release-1.4\node_modules\orchestrator\index.js:264:8)
    at C:\hyperledger_fabric\fabric-sdk-node-release-1.4\node_modules\orchestrator\index.js:275:23
    at finish (C:\hyperledger_fabric\fabric-sdk-node-release-1.4\node_modules\orchestrator\lib\runTask.js:21:8)
    at cb (C:\hyperledger_fabric\fabric-sdk-node-release-1.4\node_modules\orchestrator\lib\runTask.js:29:3)
    at C:\hyperledger_fabric\fabric-sdk-node-release-1.4\node_modules\gulp-shell\node_modules\async\dist\async.js:473:16
    at iterateeCallback (C:\hyperledger_fabric\fabric-sdk-node-release-1.4\node_modules\gulp-shell\node_modules\async\dist\async.js:988:17)
    at C:\hyperledger_fabric\fabric-sdk-node-release-1.4\node_modules\gulp-shell\node_modules\async\dist\async.js:969:16
    at ChildProcess.child.on (C:\hyperledger_fabric\fabric-sdk-node-release-1.4\node_modules\gulp-shell\index.js:72:7)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
...