ayastreb / bandwidth-hero-proxy

:zap: Proxy that compresses images to low-resolution
https://bandwidth-hero.com/
MIT License
189 stars 160 forks source link

Unable to run proxy server Unexpected token ... ??? #10

Closed jonnym1 closed 6 years ago

jonnym1 commented 6 years ago

Anybody know what i'm doing wrong?

`/root/bandwidth-hero-proxy-master/src/proxy.js:14 ...pick(req.headers, ['cookie', 'dnt', 'referer']), ^^^

SyntaxError: Unexpected token ... at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/root/bandwidth-hero-proxy-master/server.js:5:15) `

jonnym1 commented 6 years ago

Problem solved, Was running an old version of nodeJS. Thanks.