Error: The required parameter 'sequence' is empty. Rerun the command with --sequence flag

Error: The required parameter 'sequence' is empty. Rerun the command with --sequence flag

我正在开发 hyperledger 2.2 和 ubuntu 20 系统。 我尝试使用 command

来批准安装的链代码

bash#导出CC_NAME=基本

bash#导出CHANNEL_NAME=我的频道

bash# peer lifecycle chaincode approveformyorg -o orderer.example.com:7050 --tls --cafile $ORDERER_CA --channelID $CHANNEL_NAME --name $CC_NAME --version 1 --package-id $PACKAGE_ID --sequence 1 --init-required --signature-policy "OR ('Org1MSP.peer','Org2MSP.peer','Org3MSP.peer')"

有人可以帮我吗?

您是否完成了 ID 为“peer lifecycle install”的“export PACKAGE_ID=”returns?我有同样的错误,这是环境变量PACKAGE_ID

的错误