const is reserved parse error

0 votes
i am trying to archive a business network and im running the following command.

composer archive create --archiveFile digitialPropertyNetwork.zip --sourceType module --sourceName digitalproperty-network

but i am getting the following error:

Creating Business Network Archive

Looking for package.json of Business Network Definition

Input directory: /home/azureuser/.nvm/v6.9.5/lib/node_modules/digitalproperty-network
/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/yargs/yargs.js:1079
      else throw err
           ^

SyntaxError: The keyword 'const' is reserved (17:0)
    at Parser.pp$4.raise (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:2488:13)
    at Parser.pp$3.parseIdent (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:2436:12)
    at Parser.pp$3.parseExprAtom (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1946:19)
    at Parser.pp$3.parseExprSubscripts (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1872:19)
    at Parser.pp$3.parseMaybeUnary (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1849:17)
    at Parser.pp$3.parseExprOps (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1791:19)
    at Parser.pp$3.parseMaybeConditional (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1774:19)
    at Parser.pp$3.parseMaybeAssign (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1750:19)
    at Parser.pp$3.parseExpression (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:1722:19)
    at Parser.pp$1.parseStatement (/home/azureuser/.nvm/v6.9.5/lib/node_modules/composer-cli/node_modules/acorn/dist/acorn.js:777:45)

How can i solve this?
Jul 6, 2018 in Blockchain by digger
• 26,740 points
1,597 views

1 answer to this question.

0 votes
It could be an error because of the extension. Change the extension in your command and retry with digitialPropertyNetwork.bna
answered Jul 6, 2018 by slayer
• 29,370 points

Related Questions In Blockchain

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, 2019 in Blockchain by Reshma
3,094 views
0 votes
1 answer

sendProposal - timed out after:45000, sendPeersProposal - Promise is rejected: Error: REQUEST_TIMEOUT

You could simply replace --net=bridge with --net=artifacts_default in your DockerFile.  I used ...READ MORE

answered Jul 26, 2018 in Blockchain by Perry
• 17,100 points
1,974 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
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,740 points
1,004 views
+1 vote
1 answer
0 votes
1 answer

Truffle tutorials "Error:recipient address is not a contract address"

It appears like you have already migrated ...READ MORE

answered Aug 8, 2018 in Blockchain by slayer
• 29,370 points
1,132 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP