【发布时间】:2020-03-12 11:53:38
【问题描述】:
问题:
我已经克隆了 Hyperledger-Indy SDK 存储库,然后我尝试运行 nodeJs 示例首先我发出命令 npm run ledger: start 然后我发出 npm install 然后在 nodejs 文件夹中发出 npm run start。之后我得到了
> samples@1.0.0 start /home/tharindu/indy-sdk/samples/nodejs
> node src/main.js
gettingStarted.js -> started
Open Pool Ledger: pool1
done
(node:4013) UnhandledPromiseRejectionWarning: IndyError: PoolLedgerTimeout
at Object.callback (/home/tharindu/indy-sdk/samples/nodejs/node_modules/indy-sdk/src/wrapIndyCallback.js:15:10)
(node:4013) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4013) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
终端出现此错误。有人可以帮我解决这个问题吗?我尝试了很多以找到解决此问题的方法,但我无法找到解决此问题的方法。谢谢。
【问题讨论】:
-
能否请您分享您的开发环境的详细信息,例如操作系统类型、操作系统版本、NodeJs 版本、nvm 版本等。
标签: node.js hyperledger hyperledger-indy