Fabric-samples first-network环境配置遇到问题
软件包安装过程建议:科学上网+choco install
成功测试结果
grpc包
- issue: grpc需要编译,编译工具版本不对称或者缺少某些关键组件
- solutions
- 下载vs2015编译工具exe
或者直接在命令行中下载npm install --global --production windows-build-tools
- 2015下修改npm中msvs版本
npm config set msvs_version 2015 --global
- reboot电脑
npm rebuild
- 假如不通过:添加后缀
--upadte-binary
--build-from-source
- 查看具体输出
- 假如不通过:添加后缀
- 下载vs2015编译工具exe
- from
- solutions
docker
- issues1: 相关images一直download不下来
- solution: 对docker daemon配置淘宝镜像
- from
- issues2: docker强行关机再开启会出现错误
- solution: 等待docker关闭后再关机
shell脚本运行问题
- issue1: shell脚本不能运行
- solution: git的bin下存在
sh.exe
, 加入环境变量运行或者使用git bash运行
- solution: git的bin下存在
- issue2:编译设定出错
Creating peer0.org1.example.com ... error ERROR: for peer0.org1.example.com Cannot create cont ainer for service peer0.org1.example.com: b'Mount den ied:\nThe source path "\\\\var\\\\run:/host/var/run/" \nis not a valid Windows path' ERROR: for peer0.org1.example.com Cannot create cont ainer for service peer0.org1.example.com: b'Mount den ied:\nThe source path "\\\\var\\\\run:/host/var/run/" \nis not a valid Windows path' ERROR: Encountered errors while bringing up the proje ct.
- solution:
- 由于sh脚本中
cd ../basic-network
- 在
../basic-network/.env
追加
COMPOSE_CONVERT_WINDOWS_PATHS=1
- 由于sh脚本中
- from
- solution: