fisco@ubuntu:~/benchmarks$ npx caliper bind --caliper-bind-sut fisco-bcos --caliper-bind-sdk latest 2022.09.19-03:34:47.079 warn [caliper] [bind] Working directory for binding not specified. Using "/home/fisco/benchmarks" Binding for fisco-bcos@latest. This might take some time... 2022.09.19-03:34:47.081 info [caliper] [bind] Binding working directory: /home/fisco/benchmarks 2022.09.19-03:34:47.081 info [caliper] [bind] Calling npm with: install web3@0.20.7 npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://github.com/frozeman/bignumber.js-nolookahead.git npm ERR! npm ERR! fatal: unable to access 'https://github.com/frozeman/bignumber.js-nolookahead.git/': Failed to connect to github.com port 443: Connection refused npm ERR! npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in: npm ERR! /home/fisco/.npm/_logs/2022-09-19T10_35_09_264Z-debug.log 2022.09.19-03:35:09.268 error [caliper] [bind] Failed to execute "npm" with return code 1. Error: Failed to execute "npm" with return code 1. at ChildProcess.proc.on (/home/fisco/benchmarks/node_modules/@hyperledger/caliper-cli/lib/utils/cmdutils.js:56:35) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12) Command failed
这个问题我走遍了很多地方都没办法官网那个也试过了,结果找到了一个fabric的教程里面有个小命令重构一下就成功了。
npm rebuild
npx caliper bind --caliper-bind-sut fisco-bcos --caliper-bind-sdk latest