LucianoGanga / simple-headless-chrome

Simple abstraction to use Chrome as a Headless Browser with Node JS
MIT License
217 stars 50 forks source link

chrome-launcher not stating #82

Closed webciter closed 6 years ago

webciter commented 7 years ago

/home/developer/node_modules/chrome-launcher/chrome-launcher.js:31 function launch(opts = {}) { ^

SyntaxError: Unexpected token = at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object. (/home/developer/node_modules/chrome-launcher/index.js:6:10) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10)

LucianoGanga commented 7 years ago

Hello @webciter ! How are you starting the module? How did you install it? How are you using it? I need more information to help you.

Thanks! Lucho

webciter commented 7 years ago

the issue is now sorted i installed node that was built into Ubuntu 16.04 which was an old version so i downloaded nodejs from there servers and copied the binary to /usr/bin as node2, now i run it as node2 then it works, iv now got the browser functioning.