hyperledger-fabric - 卸载 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
解决方案
确保您使用的是 Node 8.9 或以下版本:
node -v 如果输出超过 8.9,则卸载 node 并使用 8.9 版本重新安装它或使用 nvm(节点版本管理器)。谷歌它你可以很容易地找到上面的过程。
推荐阅读
- python - 通过使用 map lambda 或列表理解的列表中的键迭代地在字典中查找值
- r - faces_grid 和 ggplot 中 y 轴标签的对齐方式?
- postgresql - Amazon RDS - Postgresql 角色无法访问表
- android - 对话框弹出并返回活动
- visual-studio-code - VS代码可以改变额外“结束”的颜色吗?
- node.js - 使用 nodejs 应用程序读取打字稿文件
- docker - 在多组织多主机环境中运行 Hyperledger Composer
- apache-spark - Spark中的表数据存储在哪里?
- php - 未定义变量:标记
- javascript - JSHint 引用外部作用域