尝试为超级账本结构创建钱包和网关连接配置文件时,收到 WEFT 警告

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

尝试运行此代码时出现纬纱警告错误:“curl -s http://console.127-0-0-1.nip.io:8080/ak/api/v1/components | weft microfab -w ./_wallets -p ./_gateways -m ./_msp -f"



$:  % curl -s http://console.127-0-0-1.nip.io:8080/ak/api/v1/components | weft microfab -w ./_wallets -p ./_gateways -m ./_msp -f
WEFT WARNING: skipping argument microfab
WEFT WARNING: skipping argument ./_wallets
WEFT WARNING: skipping argument ./_gateways
WEFT WARNING: skipping argument -m
WEFT WARNING: skipping argument ./_msp
WEFT ERROR 1: No file name specified!
WEFT WILL NOW EXIT...
Usage: Weft [args]
  -b: specify the CTA id to simulate (default 0x0x0)
      can be an integer or an x-separated tuple e.g. 0x0x1 or 1x2
  -d: print detailed information for error reporting
      this includes line numbers for blocked threads under deadlock and
      and per-thread and per-address information for races
  -f: specify the input file
  -g: specify the grid dimensions for the kernel being simulated
      can be an integer or an x-separated tuple e.g. 32x32x2 or 32x1
      Weft will still only simulate a single CTA specified by '-b'
  -i: instrument execution
  -n: number of threads per CTA
      can be an integer or an x-separated tuple e.g. 64x2 or 32x8x1
  -p: print individual Weft thread files (one file per thread!)

macos blockchain hyperledger-fabric
1个回答
0
投票

看起来您安装的任何

weft
命令都不是您所期望的。应该是这个(全局安装的)NPM 包:

https://www.npmjs.com/package/@hyperledger-labs/weft

确保已安装该命令,并且该命令位于 shell 路径中的其他

weft
命令之前。或者您可以在命令行上显式提供正确的
weft
命令的路径,以避免更改 shell 的 PATH。

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