【问题标题】:How to install ursa in ubuntu machine如何在ubuntu机器上安装ursa
【发布时间】:2018-06-14 21:58:12
【问题描述】:

我正在尝试在 ubuntu 机器上安装 ursa,但遇到了问题。

我正在运行的节点版本是: -节点-v v10.4.1 - node-gyp -v v3.6.2

我无法从错误堆栈中找出错误:

gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit 
(/usr/local/lib/node_modules/npm/node_modules/node- 
gyp/lib/build.js:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit 
(internal/child_process.js:237:12)
gyp ERR! System Linux 4.4.0-1060-aws
gyp ERR! command "/usr/local/bin/node" 
"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" 
"rebuild"
gyp ERR! cwd /home/ubuntu/buze-payments/node_modules/ursa
gyp ERR! node -v v10.4.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN ms-payments@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ursa@0.9.4 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ursa@0.9.4 install script.
npm ERR! This is probably not a problem with npm. There is likely 
additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2018-06-14T21_53_02_279Z-debug.log

知道问题出在哪里吗?

【问题讨论】:

  • 您确认您安装了libssl-dev 吗? apt-get install libssl-dev 它被描述为here

标签: node.js ubuntu npm npm-install


【解决方案1】:

我有同样的问题。 如果您确实安装了libssl-dev 并且仍然存在问题,请尝试降级节点...不理想,但它对我有用。

我使用n 来管理我的节点版本。

安装后版本8.11.3ursa安装完美。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-03-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-04-26
    • 2020-05-10
    • 1970-01-01
    相关资源
    最近更新 更多