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

[launcher]: No binary for Chrome browser on your platform. #62

Closed
spagu opened this issue Oct 14, 2015 · 9 comments
Closed

[launcher]: No binary for Chrome browser on your platform. #62

spagu opened this issue Oct 14, 2015 · 9 comments
Labels

Comments

@spagu
Copy link

spagu commented Oct 14, 2015

FreeBSD is asking for ''Please, set "CHROME_BIN" env variable.'' What to do ?

@maksimr
Copy link

maksimr commented Oct 14, 2015

You should set global environment variable CHROME_BIN like PATH. You can put 'export CHROME_BIN=google-chrome' to .profile or if you use chromium to shold write something like CHROME_BIN=chromium-browser

@spagu
Copy link
Author

spagu commented Oct 14, 2015

Ok Thanks, I am just not sure about :do I need to have browser installed?
I am trying to do tests against remote dedicated machine. Firefox works fine.

@maksimr
Copy link

maksimr commented Oct 14, 2015

@spagu browser should be installed on machine where you run tests

@maksimr
Copy link

maksimr commented Oct 14, 2015

Documentation about CHROME_BIN variable - http://karma-runner.github.io/0.13/config/browsers.html
section Correct path to browser binary
Feel free reopen

Thanks

@maksimr maksimr closed this as completed Oct 14, 2015
@ddeveloperr
Copy link

The same problem on cloud9 IDE....details are here

Somebody deal with Cloud9 IDE please?

@mtizziani
Copy link

mtizziani commented Feb 8, 2018

i use ubuntu with php-storm and chromium for my development an have done the following:

Terminal:

export CHROME_BIN=/usr/bin/chromium-browser

PHP-Storm:

  1. install the plugin "Karma"
  2. open project
  3. Run -> Edit Configuration -> press + for add a new Karma Runner =>
  • set a name
  • select the karma.conf.json from your project dir
  • use "Chromium" as browser
  1. run will open karma in a new Chromium Tab and all tests are running

oki2a24 added a commit to oki2a24/kanban-app that referenced this issue Jan 20, 2019
エラーメッセージを検索して、対処していった。

プラグイン不足

- javascript - Vue-test-utils can't find `Set()`: ReferenceError: Can't find variable: Set - Stack Overflow https://stackoverflow.com/questions/53764988/vue-test-utils-cant-find-set-referenceerror-cant-find-variable-set
- javascript - karma plugin dependencies not being found - Stack Overflow https://stackoverflow.com/questions/32425580/karma-plugin-dependencies-not-being-found
- Error: No provider for "framework:mocha"! (Resolving: framework:mocha) · Issue #42 · karma-runner/karma-mocha karma-runner/karma-mocha#42 (comment)
- Reporter plugins not working with karma 1.1.1? · Issue #2246 · karma-runner/karma karma-runner/karma#2246 (comment)
- "Can not load "coverage", it is not registered!" error when running · Issue #59 · karma-runner/karma-coverage karma-runner/karma-coverage#59 (comment)

Chrome Headless を使用するために Chromium インストールとパスを設定
apt-get update
apt-get install chromium
hromium --version
export CHROME_BIN=/usr/bin/chromium

- [launcher]: No binary for Chrome browser on your platform. · Issue #62 · karma-runner/karma-chrome-launcher karma-runner/karma-chrome-launcher#62
- Dockerを使ってHeadless Chromeを動かしてみる - Qiita https://qiita.com/dd511805/items/dfe03c5486bf1421875a
- Puppeteer をDockerコンテナで利用する - Qiita https://qiita.com/HeRo/items/9be64b559692e12cc109

Chrome Headless の起動オプション設定

- ChromeHeadless can't run as root with --no-sandbox anymore · Issue #158 · karma-runner/karma-chrome-launcher karma-runner/karma-chrome-launcher#158 (comment)
@prashantidealittechno
Copy link

prashantidealittechno commented Feb 28, 2020

How can I add into node:lts-alpine3.11?

# base image
FROM node:lts-alpine3.11


# install chrome for protractor tests
RUN apk add chromium && \
    export CHROME_BIN='/usr/bin/chromium'

# set working directory
WORKDIR /app

# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH

# install and cache app dependencies
COPY package.json /app/package.json
RUN npm install
RUN npm install -g @angular/[email protected]

# add app
COPY . /app

# start app
CMD ng serve --host 0.0.0.0

I am trying the above code and it is not working:

@KurisuLim
Copy link

Hello, @prashantidealittechno I know it's over 5 years now since you left this comment. But I was wondering if you had solved this issue? I am new to docker and I am having the same problem.

@Appius
Copy link

Appius commented Feb 23, 2021

@prashantidealittechno, @KurisuLim

The issue is explained here - https://stackoverflow.com/a/33379487.
Basically, export is not working as you expect inside docker container. You need to use ENV instead.

FROM node:14-alpine
RUN apk add chromium
ENV CHROME_BIN='/usr/bin/chromium-browser'

...
RUN npm run test

Works fine for me.

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

No branches or pull requests

8 participants