Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running server.js #11

Open
emmauss opened this issue Jan 24, 2018 · 3 comments
Open

Error when running server.js #11

emmauss opened this issue Jan 24, 2018 · 3 comments

Comments

@emmauss
Copy link

emmauss commented Jan 24, 2018

i get this error when running the server
/root/boost/bandwidth-hero-proxy/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/boost/bandwidth-hero-proxy/server.js:6:15)

I have installed node.js and npm

@ayastreb
Copy link
Owner

Hi! Which version of node.js do you have? it requires at least 8.6.0

@emmauss
Copy link
Author

emmauss commented Jan 25, 2018

I followed the guide in the readme, so it should install the latest version. apt shows version as 6.11

@emmauss
Copy link
Author

emmauss commented Jan 25, 2018

updated to 9.4, now working

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

No branches or pull requests

2 participants