hyperledger - ubuntu 中的 Indy Node 安装问题
问题描述
我正在尝试在 ubuntu 上安装 Hyperledger Indy Node,但遇到了问题
这是日志:
indy-nodejs | gyp ERR! build error
indy-nodejs | gyp ERR! stack Error: `make` failed with exit code: 2
indy-nodejs | gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
indy-nodejs | gyp ERR! stack at ChildProcess.emit (events.js:210:5)
indy-nodejs | gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
indy-nodejs | gyp ERR! System Linux 4.15.0-45-generic
indy-nodejs | gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
indy-nodejs | gyp ERR! cwd /home/indy/node_modules/indy-sdk
indy-nodejs | gyp ERR! node -v v13.1.0
indy-nodejs | gyp ERR! node-gyp -v v5.0.5
indy-nodejs | gyp ERR! not ok
indy-nodejs | npm ERR! code ELIFECYCLE
indy-nodejs | npm ERR! errno 1
indy-nodejs | npm ERR! indy-sdk@1.11.0 install: `node-gyp rebuild`
indy-nodejs | npm ERR! Exit status 1
indy-nodejs | npm ERR!
indy-nodejs | npm ERR! Failed at the indy-sdk@1.11.0 install script.
indy-nodejs | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
indy-nodejs |
indy-nodejs | npm ERR! A complete log of this run can be found in:
indy-nodejs | npm ERR! /home/indy/.npm/_logs/2019-11-16T04_46_31_837Z-debug.log
indy-nodejs exited with code 1
解决方案
根据此线程,您可以尝试:
sudo apt-get install build-essential
- 删除
~/.node-gyp
,~/.npmrc
文件夹并node_modules
在您的项目中,然后重新启动计算机 node
与版本一起使用11.0.0
- 确保你有libindy.dylib
推荐阅读
- python - 将 python 模块的终端输出打印到 tkinter 标签中
- javascript - 由于错误,我的 Vue 应用程序无法安装:未捕获的 DOMException:无法在“元素”上执行“setAttribute”:“)”不是有效的属性名称
- azure-devops - 列出 ADO 的所有用户权利
- flyway - FlywayException:不支持的数据库:MariaDB 10.4
- css - 如何修复 svg CSS 动画?
- vue.js - Implementing a router in Vue 2 project
- http - 为什么不是所有的 cookie 都设置为 HTTPONLY 和 SECURE
- sql - 添加 RETURNING 语句导致 ORA-00933: SQL 命令未正确结束
- arrays - 数组序列(字符串)返回下一个可见按钮 - React
- go - 连接到 grafana loki