搭建marbles样例出现throw new Error('Cannot find org.', orgName);

参考链接:
执行命令:

node install_chaincode.js

报错:

info: First we enroll

/Users/lishun/app/marbles/utils/connection_profile_lib/parts/org.js:102

throw new Error('Cannot find org.', orgName);

^

 

Error: Cannot find org.

    at Object.helper.getAdminPrivateKeyPEM (/Users/lishun/app/marbles/utils/connection_profile_lib/parts/org.js:102:9)

    at Object.cp.makeEnrollmentOptionsUsingCert (/Users/lishun/app/marbles/utils/connection_profile_lib/index.js:238:22)

    at Object.<anonymous> (/Users/lishun/app/marbles/scripts/install_chaincode.js:42:28)

    at Module._compile (module.js:652:30)

    at Object.Module._extensions..js (module.js:663:10)

    at Module.load (module.js:565:32)

    at tryModuleLoad (module.js:505:12)

    at Function.Module._load (module.js:497:3)

    at Function.Module.runMain (module.js:693:10)

    at startup (bootstrap_node.js:191:16)

 
如参考链接所说:

vim /Users/lishun/app/marbles/config/connection_profile_local.json

修改organizations节点的路径,此处只需修改organizations,尝试过client也修改,在gulp marbles_local时,报错:Failed to load user "admin" from local key value store. Error: Error: Private key missing from key store. Can not establish the signing identity for user admin
 

posted on 2018-05-28 14:45    阅读(505)  评论(0)    收藏  举报