Armax / Pokemon-GO-node-api

Pokemon GO api node.js library
MIT License
875 stars 198 forks source link

Error to require #54

Closed samuelds closed 8 years ago

samuelds commented 8 years ago

` let {latitude, longitude} = self.playerInfo; ^

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/ubuntu/workspace/app.js:3:14) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10)`

gallexme commented 8 years ago

52

jonreader commented 8 years ago

You'll get this error if your not on a new version of node.

Get latest rather then recommended.

nicholas-c commented 8 years ago

Getting this running node v0.10.25 - Is this right?

jonreader commented 8 years ago

Without checking; I think you need version 6 or higher (6.x.x).

Current recommended is 4.4.7, latest is 6.3.0 .

Armax commented 8 years ago

We removed all the ES6 stuff try now