尝试运行此代码时出现 Weft 警告错误:“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!)
看起来
weft
您安装的任何命令都不是您所期望的。它应该是这个(全局安装的)NPM 包:https://www.npmjs.com/package/@hyperledger-labs/weft
确保已安装该命令,并且该命令
weft
位于 shell PATH 中其他命令的前面。或者,您可以weft
在命令行上明确提供正确命令的路径,以避免更改 shell 的 PATH。