虽然在找到./runApp.sh
的超级账本结构样本中运行here命令,但在安装节点模块后出现以下错误。
Error: ============== node modules installed already ============= /home/user/fabric/fabric-samples/balance-transfer/app.js:110 app.post('/users', async function(req, res) { ^^^^^ SyntaxError: missing ) after argument list at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28)
我该如何解决?
删除node_modules文件夹,然后尝试重新安装一次。在结构样本文档中,遵循第二个选项步骤:删除node_modules文件夹:
[“第二种选择步骤”带来的步骤终端窗口1
$ cd织物样本/余额转移
./ runApp.sh打开localhost:3000
在此之后再打开一个终端终端窗口2检查是否安装了jq?./testAPIs.sh -l golang,从中您将获得:POST请求创建频道...
{“ success”:true,“ message”:“成功创建频道'mychannel'”}
Org1上的POST请求加入频道
{“ success”:true,“ message”:“已成功将组织Org1中的对等方加入到channel:mychannel”}
Org2上的POST请求加入频道
{“ success”:true,“ message”:“成功将组织Org2中的对等方加入到channel:mychannel”}
POST请求更新Org1上的锚点同行