设置结构路径时出现混乱



我正在尝试运行此命令

peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls --cafile "${PWD}/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem" -C mychannel -n ledger -c '{"Args":["CreateAsset","asset1","blue","5","tom","35"]}'

我得到这个错误

Fatal error when initializing core config : Could not find config file. Please make sure that FABRIC_CFG_PATH is set to a path which contains core.yaml

我正在学习本教程https://hyperledger-fabric.readthedocs.io/en/release-2.2/couchdb_tutorial.html#enable-超账本结构的沙发,我很困惑我做错了什么。

我的core.yml文件设置在这个位置岩心.png到目前为止,我没有改变任何事情。

我的路径在这个文件夹中。所以我用这个命令修复了它。

ricky@rr:~/fabric/fabric-samples/test-network$ export PATH=${PWD}/../bin:$PATH
ricky@rr:~/fabric/fabric-samples/test-network$ export FABRIC_CFG_PATH=$PWD/../config/

最新更新