Hyperledger composer-cli安装失败的Mac OS

问题描述 投票:0回答:1

遵循Hyperledger Dev课程https://hyperledger.github.io/composer/latest/installing/development-tools.html

并在Mac OS上运行npm install -g composer-cli命令。它似乎不是一个权限问题,我以前有过这些。这是从下面的日志中脱颖而出的线;

Failed at the [email protected] install script.

我正在运行NPM版本6.7.0和节点版本11.10.0

18655 silly install [email protected] 18656 info lifecycle [email protected]~install: [email protected] 18657 verbose lifecycle [email protected]~install: unsafe-perm in lifecycle true 18658 verbose lifecycle [email protected]~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/local/lib/node_modules/composer-cli/node_modules/grpc/node_modules/.bin:/usr/local/lib/node_modules/composer-cli/node_modules/.bin:/usr/local/lib/node_modules/.bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/usr/local:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands 18659 verbose lifecycle [email protected]~install: CWD: /usr/local/lib/node_modules/composer-cli/node_modules/grpc 18660 silly lifecycle [email protected]~install: Args: [ '-c', 18660 silly lifecycle 'node-pre-gyp install --fallback-to-build --library=static_library' ] 18661 silly lifecycle [email protected]~install: Returned: code: 1 signal: null 18662 info lifecycle [email protected]~install: Failed to exec install script 18663 timing action:install Completed in 40426ms 18664 verbose unlock done using /Users/mu/.npm/_locks/staging-3a08f0df5026584d.lock for /usr/local/lib/node_modules/.staging 18665 timing stage:rollbackFailedOptional Completed in 1847ms 18666 timing stage:runTopLevelLifecycles Completed in 62690ms 18667 verbose stack Error: [email protected] install:node-pre-gyp install --fallback-to-build --library = static_library 18667 verbose stack Exit status 1 18667 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16) 18667 verbose stack at EventEmitter.emit (events.js:197:13) 18667 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 18667 verbose stack at ChildProcess.emit (events.js:197:13) 18667 verbose stack at maybeClose (internal/child_process.js:984:16) 18667 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5) 18668 verbose pkgid [email protected] 18669 verbose cwd /Users/mu/Documents/Hyperledger 18670 verbose Darwin 18.2.0 18671 verbose argv "/usr/local/Cellar/node/11.10.0/bin/node" "/usr/local/bin/npm" "install" "-g" "composer-cli" 18672 verbose node v11.10.0 18673 verbose npm v6.7.0 18674 error code ELIFECYCLE 18675 error errno 1 18676 error [email protected] install:node-pre-gyp install --fallback-to-build --library = static_library 18676 error Exit status 1 18677 error Failed at the [email protected] install script. 18677 error This is probably not a problem with npm. There is likely additional logging output above. 18678 verbose exit [ 1, true ]

hyperledger-composer
1个回答
0
投票

您需要使用节点版本8.9或更高版本,但不支持9或更高版本以及npm 5.x.它在pre-requisities section中明确规定

© www.soinside.com 2019 - 2024. All rights reserved.