etherdelta / bots

EtherDelta example bots
95 stars 121 forks source link

Error running"node taker.js" #21

Open pathaksa opened 6 years ago

pathaksa commented 6 years ago

Getting this error when running "node taker.js". I have added the address and private key on line 9 and 10.

const [walletETH, walletToken, EtherDeltaETH, EtherDeltaToken] = results; ^

SyntaxError: Unexpected token [ at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:442:10) at startup (node.js:136:18) at node.js:966:3

pathaksa commented 6 years ago

Fixed it by running nvm install node