Hyperledger Fabric installChaincode 错误 Missing peer objects in install chaincode request

Hyperledger Fabric installChaincode error Missing peer objects in install chaincode request

我正在尝试通过节点桥使用 installChaincode hyperledger fabric node sdk function 将链代码安装到区块链环境。我调用函数的方式如下:

let fabricClient = new FabricClient();
...
let request = {
                targets: ['peer0-Org1'],
                chaincodePath: '[path_to_chaincode]',
                chaincodeId: 'abcd',
                chaincodeVersion: 'v1.0',
            }


let result = await fabricClient.installChaincode({
                request: request,
                timeout: 5000
            });

但是,我收到一条错误消息,提示我 Missing peer objects in install chaincode request

完整的错误信息是: error: [Client.js]: installChaincode error Missing peer objects in install chaincode request

我在设置请求对象时可能遗漏了什么?

显然我调用函数有误,

let result = await fabricClient.installChaincode(request, 5000);