Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

SyntaxError: Unexpected token = #252

Closed
joker5bb opened this issue Jun 10, 2017 · 6 comments
Closed

SyntaxError: Unexpected token = #252

joker5bb opened this issue Jun 10, 2017 · 6 comments
Labels

Comments

@joker5bb
Copy link

zenbot backfill poloniex.BTC-USDT
/home/user/zenbot/node_modules/bitfinex-api-node/index.js:11
constructor (apiKey, apiSecret, opts = { version: 1, transform: false }) {
^

SyntaxError: Unexpected token =
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 Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/home/user/zenbot/extensions/exchanges/bitfinex/exchange.js:1:75)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)

@DeviaVir
Copy link
Owner

What node version do you have installed?

node --version

@msisco
Copy link

msisco commented Jun 10, 2017

I'm getting this also, my node version is 4.2.6

@DeviaVir
Copy link
Owner

DeviaVir commented Jun 10, 2017

@msisco the latest LTS is 6.x and latest is 8.x, could you install a newer version of nodejs and try again?
https://nodejs.org/en/

@msisco
Copy link

msisco commented Jun 10, 2017

Awesome! Fixed after installing 8.x

@crubb
Copy link
Contributor

crubb commented Jun 10, 2017

Got the same error with nodejs 4, should we implement a version check?

@DeviaVir
Copy link
Owner

DeviaVir commented Jun 10, 2017

@crubb I think that would be useful, opened: #259

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants