node.js - 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
解决方案
错误的例子,试试这个链接
推荐阅读
- php - Symfony 4.1.4 isSubmitted() 不适用于呈现的表单
- python - 根据另一列合并数据框中的行
- python - .info() 不显示空值
- javascript - 通过传递视频 ID(JS 和 Youtube API)从 youtube 搜索结果播放视频
- javascript - 数据表子行未捕获的类型错误:无法设置空子行的属性“样式”
- nativescript - 如何在 Nativescript 中显示两个线性轴?
- docker - 无法安装节点红色容器
- c# - VS Code在编译时添加空间
- arrays - VBA 数组/消息框等
- python - Python:具有跳过值对的运算符