Hyperledger fabcar: node enrollAdmin.js error

0 votes

When I run node enrollAdmin.js I get this error :

/home/<username>/fabric-samples/fabcar/node_modules/fabric-client/lib/Client.js:742
    async _createOrUpdateChannel(request, have_envelope) {
          ^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Unexpected identifier
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/<username>/fabric-samples/fabcar/node_modules/fabric-client/index.js:25:18)

Can someone tell me how to solve this?

Oct 26, 2018 in Blockchain by digger
• 26,550 points
279 views

1 answer to this question.

0 votes
Update the node:

npm rebuild and then run the command
answered Oct 26, 2018 by anonymous

Related Questions In Blockchain

0 votes
4 answers

Hyperledger fabric: enrollAdmin.js Error: Cannot find module 'fabric-client'

Change your directory to fabric-samples/fabrcar. And run: npm ...READ MORE

answered Nov 21, 2018 in Blockchain by Omkar
• 67,660 points
1,269 views
0 votes
1 answer

Hyperledger fabric node sdk deploy.js example failing

Have you installed couchdb? Install couchdb as ...READ MORE

answered Sep 17, 2018 in Blockchain by slayer
• 29,170 points
100 views
0 votes
1 answer

Docker: How to connect Node.js in container to Hyperledger Fabric?

You need to map ~/.composer/cards of your Docker host ...READ MORE

answered Oct 31, 2018 in Blockchain by Omkar
• 67,660 points
111 views
0 votes
1 answer
0 votes
1 answer

Invalid Batch or signature in Savtooth

This will solve your problem import org.apache.commons.codec.binary.Hex; Transaction txn ...READ MORE

answered Aug 1, 2018 in Blockchain by digger
• 26,550 points
83 views
+1 vote
1 answer
0 votes
3 answers

Hyperledger fabcar sample fabric error: sendPeersProposal - Promise is rejected: Error: Connect Failed

Open the datasources.json file and replace the grpcs:// with grpc://. This solution worked ...READ MORE

answered Apr 30 in Blockchain by Reshma
941 views
+1 vote
3 answers