安装hyperledger Hurley时出现npm错误



尝试使用以下命令在ubuntu 18.04上安装Hyperledger Hurley:sudo npm install-g@worldsibu/hurley--unsafe perm=true

新的ubuntu 18.04虚拟机上没有安装任何相关的Hyperledger。(这是问题吗?)

我收到以下错误消息:

gyp ERR!生成错误gyp ERR!堆栈错误:找不到:makegyp ERR!getNotFoundError处的堆栈(/usr/lib/nod_module/npm/nod_module/with/with.js:13:12)gyp ERR!F处的堆栈(/usr/lib/nod_module/npm/nod_module/with/with.js:68:19)gyp ERR!E处的堆栈(/usr/lib/nod_module/npm/nod_module/with/with.js:80:29)gyp ERR!堆栈在/usr/lib/nod_module/npm/nod_module/with/with.js:89:16gyp ERR!堆栈位于/usr/lib/nod_module/npm/nod_module/isexe/index.js:42:5gyp ERR!堆栈在/usr/lib/nod_module/npm/nod_module/isexe/mode.js:8:5

来自第th个npm日志文件的错误:

18744详细堆栈错误:@ampretia/x509@0.4.0安装:`node-gyp重建18744详细堆栈退出状态118744 EventEmitter上的详细堆栈
。(/usr/lib/nod_modules/npm/nod_module/npm lifecycle/index.js:326:16)EventEmitter.emit上的18744详细堆栈(events.js:209:13)节点gyp重建

有人看到这样的东西了吗?

提前感谢您的帮助。

问题已修复。用nodejs v8.x 替换nodejs v12

配置npm在没有sudo权限的情况下运行:

$ npm config set prefix "~/.npm-global"
$ nano .profile
...
# NPM
export PATH=~/.npm-global/bin:$PATH
$ source .profile

并且你可以用成功安装赫尔利

npm install -g @worldsibu/hurley 

没有sudo并且没有"--unsafe perm=true">

最新更新