尝试在我的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
有人可以告诉我该怎么做吗?
答案 0 :(得分:0)
我在尝试安装composer-cli时遇到了同样的问题。我正在运行sudo npm install -g composer-cli
来安装它。因此,如果您以相同的方式(使用sudo
)尝试仅运行不带sudo
的安装命令。这对我在Mac上有用。