我正在尝试更新.bna文件,但是,当我运行以下命令时,我遇到了这个问题:
作曲者网络升级-c PeerAdmin @ hlfv1 -n xxx -V 0.0.2
它表示以下内容:
Upgrading business network definition. This may take a minute...
错误:尝试升级业务网络时出错。错误:任何对等方均未提供有效响应。 来自尝试对等通信的响应是一个错误:错误:2未知:链码错误(状态:500,消息:找不到名称为“ wecashup”的链码) 命令失败
我真的不知道要解决这个问题,我已经更新了json文件上的版本...但是仍然存在相同的错误。
{
“引擎”:{ “ composer”:“ ^ 0.19.13” }, “ name”:“ xxx”, “ version”:“ 0.0.2”, “ description”:“ WecashUp区块链”, “脚本”:{ “ prepublish”:“ mkdirp ./dist &&作曲家存档创建--sourceType dir --sourceName。-a ./dist/wecashup.bna”, “ pretest”:“ npm run lint”, “ lint”:“ eslint”, “ test”:“ nyc mocha -t 0 test / *。js && cumber-js” }, “关键字”:[ “作曲家”, “ composer-network” ], “ author”:“巴黎”, “电子邮件”:“ parismollochristondis@gmail.com”, “ license”:“ Apache-2.0”, “ devDependencies”:{ “ composer-admin”:“ ^ 0.19.13”, “ composer-cli”:“ ^ 0.19.13”, “ composer-client”:“ ^ 0.19.13”, “ composer-common”:“ ^ 0.19.13”, “ composer-connector-embedded”:“ ^ 0.19.13”, “ composer-cucumber-steps”:“ ^ 0.19.13”, “ chai”:“最新”, “ chai-as-promise”:“最新”, “ cucumber”:“ ^ 2.2.0”, “ eslint”:“最新”, “ nyc”:“最新”, “ mkdirp”:“最新”, “ mocha”:“最新的” } }
我的作曲者版本是19.13