Running Karma isn't working

Trying to run karma gives me the following error:

No binary for Chrome browser on your platform.
Please, set “CHROME_BIN” env variable.
This is the image I’m using:
build:
docker:
image: circleci/node:9.5-browsers
Am I missing something?

It looks like CHROME_BIN is not a default environment variable. So you need to set this yourself.

circleci@d5592fd44e85:/$ env | grep CHROME_BIN
circleci@d5592fd44e85:/$

I double checked, and that image most certainly has chrome installed.

circleci@d5592fd44e85:/$ which google-chrome
/usr/bin/google-chrome

Something like this should work for you:

CHROME_BIN=/usr/bin/google-chrome karma start --single-run
1 Like

Hi.
It works!
Thanks!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.