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:
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

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

circleci@d5592fd44e85:/$ which google-chrome

Something like this should work for you:

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

It works!

1 Like

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