分享

node.js  how to setup basic api using node on ripple network

 quasiceo 2018-08-16

I have a problem using node command to use and access ripple api.

All the necessary files/templates configured for this and also node is installed on windows.

I am using this command for basic setup of ripple api using node.

node ./node_modules/.bin/babel-node get-account-info.js

and it shows the following error

c:\wamp\www\ripple>node ./node_modules/.bin/babel-node get-account-info.js

c:\wamp\www\ripple\node_modules\.bin\babel-node:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

SyntaxError: missing ) after argument list
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3

I follows the support page of ripple.com. So for any reference please visit this page.

https://ripple.com/build/rippleapi-beginners-guide/

asked Apr 15 at 4:17
swdpankaj
186

    
The error seems obvious. You have a syntax error in your get-account-info.js It could be anything but since it claims missing ) after arguments list you might have missed a , in between arguments in function, this would throw the error function ( a b ) <- missing , between a and b – Molda Apr 15 at 5:48

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多