首页 > 解决方案 > 卸载 Hyperledger-composer 后出现 npm 安装错误 - 区块链

问题描述

您好我目前正在学习超级账本作曲家,但我重新安装了它,我正在再次安装它。现在,当我 npm install 时,我收到以下错误。如果有人可以帮助我,那就太好了。

➜  Dabbous-Innopay npm install

> fabric-dev-servers@0.0.14 prepare /Users/alydabbous/code/Dabbous-Innopay
> npm run build-archives


> fabric-dev-servers@0.0.14 build-archives /Users/alydabbous/code/Dabbous-Innopay
> gulp --gulpfile .travis/gulp.js

[16:45:08] No gulpfile found
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fabric-dev-servers@0.0.14 build-archives: `gulp --gulpfile .travis/gulp.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fabric-dev-servers@0.0.14 build-archives 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!     /Users/alydabbous/.npm/_logs/2018-11-05T15_45_08_550Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fabric-dev-servers@0.0.14 prepare: `npm run build-archives`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fabric-dev-servers@0.0.14 prepare 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!     /Users/alydabbous/.npm/_logs/2018-11-05T15_45_08_587Z-debug.log

标签: hyperledger-fabrichyperledgerblockchainhyperledger-composer

解决方案


确保您使用的是 Node 8.9 或以下版本:

node -v 如果输出超过 8.9,则卸载 node 并使用 8.9 版本重新安装它或使用 nvm(节点版本管理器)。谷歌它你可以很容易地找到上面的过程。


推荐阅读