安装hyperledger composer获取构建错误时出错

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

使用npm -v5.0.4和node -v8.15.0安装hyperledger composer时出现以下错误:

user @ gaurav -toora-XL-01:〜$ npm install -g [email protected] /home/user/.nvm/versions/node/v8.15.0/bin/composer - > /home/user/.nvm/版本/节点/ v8.15.0 / lib中/ node_modules /作曲家CLI / cli.js

[email protected] install /home/user/.nvm/versions/node/v8.15.0/lib/node_modules/composer-cli/node_modules/dtrace-provider node-gyp rebuild || node suppress-error.js

gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at getNotFoundError (/home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack     at F (/home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack     at E (/home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack     at /home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack     at /home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Linux 4.4.0-141-generic
gyp ERR! command "/home/user/.nvm/versions/node/v8.15.0/bin/node" "/home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/.nvm/versions/node/v8.15.0/lib/node_modules/composer-cli/node_modules/dtrace-provider
gyp ERR! node -v v8.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 

> [email protected] install /home/user/.nvm/versions/node/v8.15.0/lib/node_modules/composer-cli/node_modules/node-report
> node-gyp rebuild

gyp ERR! build error 
gyp ERR! stack Error: not found: make
gyp ERR! stack     at getNotFoundError (/home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack     at F (/home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack     at E (/home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack     at /home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack     at /home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Linux 4.4.0-141-generic
gyp ERR! command "/home/user/.nvm/versions/node/v8.15.0/bin/node" "/home/user/.nvm/versions/node/v8.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/user/.nvm/versions/node/v8.15.0/lib/node_modules/composer-cli/node_modules/node-report
gyp ERR! node -v v8.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/composer-cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2019-02-28T13_21_56_249Z-debug.log
hyperledger blockchain hyperledger-composer
1个回答
0
投票

请尝试使用Node版本8.9.x进行安装

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