您当前的位置: 首页 >  npm

阿雄不会写代码

暂无认证

  • 7浏览

    0关注

    53博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

caliper遇到 error [caliper] [bind] Failed to execute “npm“ with return code 1.Command failed

阿雄不会写代码 发布时间:2022-09-19 18:52:09 ,浏览量:7

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

 

 

关注
打赏
1663833680
查看更多评论
立即登录/注册

微信扫码登录

0.1073s