Error reading configuration: Unsupported Config Type

运行Hyperledger Fabric的Building Your First Network 例子。

在执行peer chaincode install -n mycc -v 1.0 -p github.com/chaincode/chaincode_example02/go/ 命令时出现:

[configtx/tool/localconfig] Load -> CRIT 002 Error reading configuration:

Unsupported Config Type ""

panic: Error reading configuration: Unsupported Config Type ""

的错误。


解决:

Then you did not set the FABRIC_CFG_PATH environment variable properly. 

The configtxgen tool needs this variable in order to locate the configtx.yaml. Go back and execute an variable in order to locate the configtx.yaml. Go back and execute an export FABRIC_CFG_PATH=$PWD then recreate your channel artifacts.


你可能感兴趣的:(Hyperledger,Fabric)