首页 > 解决方案 > 如何在ubuntu机器上安装ursa

问题描述

我正在尝试在 ubuntu 机器上安装 ursa 但有问题。

我正在运行的节点版本是: - node -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

知道问题出在哪里吗?

标签: node.jsubuntunpmnpm-install

解决方案


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

我曾经n管理我的节点版本。

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


推荐阅读