首页 > 解决方案 > Hyperleger Indy - 由于节点和 NPM 问题导致 TheOrgBook 模块构建失败

问题描述

我已经在 MacOS 中成功部署了 Hyperledger Indy SSI VC Demo 的 VON Network 和 Permitify Modules。我在 TheOrgBook 设置中遇到问题。然而,即使在尝试了 GitHub问题 #26中建议的热修复后,TheOrgBook Demo 也失败了。

ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/opt/app-root/src/src'
ERROR in Error: Error encountered resolving symbol values statically. Could not resolve localize-router relative to /opt/app-root/src/src/app/app.module.ts., resolving symbol AppModule in /opt/app-root/src/src/app/app.module.ts, resolving symbol AppModule in /opt/app-root/src/src/app/app.module.ts, resolving symbol AppModule in /opt/app-root/src/src/app/app.module.ts

    npm ERR! code ELIFECYCLE

    npm ERR! Failed at the tob-web@0.0.1 postinstall script 'ng build --prod --base-href ${NG_BASE_HREF:-/} ${NG_BUILD_FLAGS:-} && cp dist/themes/_active/index.html dist/index.html'.
    npm ERR! Make sure you have the latest version of node.js and npm installed.
    npm ERR! If you do, this is most likely a problem with the tob-web package,
    npm ERR! not with npm itself.

    npm ERR! You can get information on how to open an issue for this project with:
    npm ERR!     npm bugs tob-web
    npm ERR! Or if that isn't available, you can get their info via:
    npm ERR!     npm owner ls tob-web
    npm ERR! There is likely additional logging output above.

    npm ERR! Please include the following file with any support request:
    npm ERR!     /opt/app-root/src/npm-debug.log
    Build failed

标签: node.jsangularhyperledgerblockchainhyperledger-indy

解决方案


错误的例子,试试这个链接


推荐阅读