Closed Leotrak closed 6 years ago
Did you run npm install
? Did you copy the token as described into gettoken.json
?
gettoken.json
doesn't exist
or has the wrong values.
if it wouldnt exist there would be a error like this
Me too I have a strange problem:
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 Function.Module.runMain (module.js:441:10)
at startup (node.js:140:18)
at node.js:1043:3
@Frederic94500 that's another issue entirely. it's caused by an older version of node. i will add support for it.
Yes, your gettoken.json has the wrong values. Make sure to copy everything from the gettoken link into that file.
Soooo, tried installing the thingy according to the posted guide for the headless version, and I keep getting this when I try to run the application... Any hints or ideas on what I'm doing wrong?
undefined:1
SyntaxError: Unexpected end of JSON input at JSON.parse ()
at Object. (E:\Everything Else\Small Games\nodejs\salien-bot-master\headless.js:67:23)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
Final edit: thanks for the help, guys. Error ended up being the existence of two gettoken files - one created by me, one by the app. The one from the app, and thus used by the app, was empty...