【问题标题】:Failed at the pkcs11js@1.0.13 install script 'node-gyp rebuild'在 pkcs11js@1.0.13 安装脚本 'node-gyp rebuild' 失败
【发布时间】:2018-03-15 15:21:22
【问题描述】:

尝试在我的 ubuntu 上安装 hyperledger composer 时出现以下错误:

60822 verbose stack Error: pkcs11js@1.0.13 install: `node-gyp rebuild`
60822 verbose stack Exit status 1
60822 verbose stack     at EventEmitter.<anonymous> 
(/usr/share/npm/lib/utils/lifecycle.js:232:16)
60822 verbose stack     at emitTwo (events.js:87:13)
60822 verbose stack     at EventEmitter.emit (events.js:172:7)
60822 verbose stack     at ChildProcess.<anonymous> 
(/usr/share/npm/lib/utils/spawn.js:24:14)
60822 verbose stack     at emitTwo (events.js:87:13)
60822 verbose stack     at ChildProcess.emit (events.js:172:7)
60822 verbose stack     at maybeClose (internal/child_process.js:821:16)
60822 verbose stack     at Process.ChildProcess._handle.onexit 
60825 error Linux 4.13.0-37-generic
60826 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "generator-hyperledger-composer"
60827 error node v4.2.6
60828 error npm  v3.5.2
60829 error code ELIFECYCLE
60830 error pkcs11js@1.0.13 install: `node-gyp rebuild`
60830 error Exit status 1

谁能告诉我该怎么做?

【问题讨论】:

    标签: hyperledger-composer node-gyp


    【解决方案1】:

    我在尝试安装 composer-cli 时遇到了同样的问题。我正在运行sudo npm install -g composer-cli 来安装它。因此,如果您以相同的方式(使用sudo)尝试在没有sudo 的情况下运行安装命令。这在 Mac 上对我有用。

    【讨论】:

    • 尝试通过 sudo 和普通用户帐户。仍然失败。我正在运行 Ubuntu 服务器 16.04...
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-03-19
    • 1970-01-01
    • 1970-01-01
    • 2012-08-12
    • 2016-02-12
    • 2014-11-29
    • 1970-01-01
    相关资源
    最近更新 更多