尝试使用以下命令在ubuntu18.04上安装Hyperledger Hurley : sudo npm install -g @worldsibu/hurley --unsafe-perm=true
新的ubuntu 18.04虚拟机上没有安装任何相关的Hyperledger。(是问题所在吗??)
我得到以下错误消息:
gyp错误!生成错误gyp错误!堆栈错误:未找到:使gyp出错!stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12) gyp错误!堆栈在F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)跳转错误!堆栈在E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)跳转错误!堆栈在/usr/lib/node_modules/npm/node_modules/which/which.js:89:16跳转错误!堆栈在/usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5跳转错误!在/usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5上堆栈
npm日志文件中的错误:
18744详细堆栈错误:@ampretia/x509@0.4.0安装:``node gyp rebuild 18744详细堆栈退出状态1 18744详细堆栈
在EventEmitter。EventEmitter.emit (events.js:209:13)节点上的(/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:326:16) 18744冗余堆栈-gyp重建
有没有人已经看到这样的东西了?
提前感谢您的帮助。
发布于 2019-09-20 22:35:43
问题已修复。将nodejs v12替换为nodejs v8.x
使用以下命令将npm配置为在没有sudo权限的情况下运行:
$ npm config set prefix "~/.npm-global"
$ nano .profile
...
# NPM
export PATH=~/.npm-global/bin:$PATH
$ source .profile然后,您可以使用以下命令成功安装hurley:
npm install -g @worldsibu/hurley 不带sudo和"--unsafe-perm=true“
https://stackoverflow.com/questions/57925579
复制相似问题