hyperledger-fabric - 无法在 hyperledger fabric 1.1 上启动 composer 19.x
问题描述
在使用 composer 执行安装两个 org 设置的步骤时,我在第 17 步遇到错误,即composer network start命令:
Error: 2 UNKNOWN: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code EAI_AGAIN
我已经为 npm 设置了代理,我也可以下载节点包。我尝试使用-o npmrcFile=/tmp/composer/npmConfig参数以及具有以下内容的 npmconfig 文件:
proxy="http://xxx.xx.xx.xx:xxxx/"
https-proxy="http://xxx.xx.xx.xx:xxxx/"
registry = "http://registry.npmjs.org/"
strict-ssl=false
但仍然没有运气。内部日志越来越
7 http fetch GET 404 https://registry.npmjs.org/hyperledger-composer
8 silly fetchPackageMetaData error for hyperledger-composer@latest 404 Not Found: hyperledger-composer@latest
解决方案
诊断和解决问题的一个好方法是基于 Composer 尝试构建的 Image 创建一个测试容器,然后在该容器中测试 npm 并解决 npmrc 配置问题。这些命令应该会有所帮助:
docker run -it --name npmtest --network composer_default --entrypoint "/bin/sh" hyperledger/fabric-ccenv:x86_64-1.1.0
npm install composer-runtime
...
exit
docker rm npmtest
推荐阅读
- php - 教义 - 以一对多关系替换项目
- python - 为什么在 NN 训练中 GPU 使用率会很低?
- python - 从 dockerfiles 构建 tensorflow 和 jupyter。浏览器拒绝连接
- karate - 需要一个示例 deno,了解如何使用空手道脚本从头开始使用 gatling 进行性能测试
- angular - 角度 4 - 在 p-datatable 中使用带有 ng-template 的 else 条件。目前模板里面有2个ngif,要避免使用2个ngif
- android - Android - 标签屏幕的一个活动多个片段
- jenkins - 在 jenkins 中配置电子邮件的问题
- javascript - 在 JavaScript 中索引 HTML div 类
- python - 朴素贝叶斯多项式模型
- ios - 二元运算符“|=”不能应用于两个“UIAccessibilityTraits”操作数