indus / ncc

node-chrome-canvas || a simple to use and performant HTML5 canvas for Node.js
Other
172 stars 6 forks source link

Chrome launcher not connecting on Raspbian #8

Open greigs opened 5 years ago

greigs commented 5 years ago

On Raspbian buster, ncc is able to launch chromium and it claims to be running the devtools API on the specified port, but I get connection failed messages, even after upping the retry limit and waiting a while. I also needed to specify export LIGHTHOUSE_CHROMIUM_PATH=/usr/bin/chromium-browser to get it to work without code changes.

Possible fix might be to try using the proper chrome-launcher npm package https://www.npmjs.com/package/chrome-launcher

greigs commented 5 years ago

For whatever reason, chromium on my raspbian setup ignores the --app flag on launching. Simply replacing [``--app=${index}``] with [`` ${index}``] on this line solved this for me.