【问题标题】:Indy Node installation issue in ubuntuubuntu 中的 Indy Node 安装问题
【发布时间】:2019-11-16 06:50:16
【问题描述】:

我正在尝试在 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

【问题讨论】:

  • 每当我尝试在 hyperledger-indy 中安装 node js 时,都会出现这样的错误
  • 任何知道这个问题的解决方案的请发帖
  • 您使用哪个节点版本?你试过 v10 吗?

标签: hyperledger blockchain hyperledger-indy


【解决方案1】:

根据这个thread,你可以试试:

  1. sudo apt-get install build-essential
  2. 删除项目中的~/.node-gyp~/.npmrc 文件夹和node_modules,然后重新启动计算机
  3. 使用node 和版本11.0.0
  4. 确保你有libindy.dylib

【讨论】:

  • 但实际上 ~/.node-gyp 文件不在我的文件中,而且实际上也没有在这里构建命令 libpython-all-dev :取决于:libpython2.7-dev 但不会安装 libpython-dev :取决于:libpython2.7-dev (>= 2.7.12-1~) 但不会安装已安装 python2.7-dev :依赖:libpython2.7-dev (= 2.7.12-1ubuntu0~16.04.9) 但不会安装 E:未满足的依赖项。尝试不带软件包的“apt-get -f install”(或指定解决方案)。
猜你喜欢
  • 1970-01-01
  • 2020-06-26
  • 2021-05-02
  • 2014-08-11
  • 2017-08-19
  • 2013-05-25
  • 2023-03-30
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多