# Error while using chromium.launch()

**URL:** <https://community.grafana.com/t/error-while-using-chromium-launch/98994>\
**Category:** k6-browser\
**Created:** [June 21, 2023, 8:20am UTC](https://community.grafana.com/t/error-while-using-chromium-launch/98994 "2023-06-21T08:20:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonio.vinuelas](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@antonio.vinuelas](https://community.grafana.com/u/antonio.vinuelas)\
**Post date:** [June 21, 2023, 8:20am UTC](https://community.grafana.com/t/error-while-using-chromium-launch/98994/1 "2023-06-21T08:20:51Z")

</div>

Hi there!  
I am trying to add the k6/browser library to our performance testing suite and I can’t get it to run.  
I’ve been following the tutorials in the documentation and while executing the script shown in [this page of the wiki](https://k6.io/docs/using-k6-browser/running-browser-tests/), I get the following error, which points to the “chromium.launch” function:

ERRO[0000] Uncaught (in promise) GoError: launching browser: exec: no command  
at [github.com/grafana/xk6-browser/browser.mapBrowserType.func2](http://github.com/grafana/xk6-browser/browser.mapBrowserType.func2) (native)  
at file:///…/script.js:6:36(9) executor=per-vu-iterations scenario=default

I am running the test with " k6 run --env K6\_BROWSER\_ENABLED=true .\script.js ", since the commands shown in the docs don’t work for me.

Thank you so much for your time!

---

<div class="post-metadata">

**Author:** ![ankur](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/ankur/32/35773_2.png) [@ankur](https://community.grafana.com/u/ankur)\
**Post date:** [June 21, 2023, 10:01am UTC](https://community.grafana.com/t/error-while-using-chromium-launch/98994/2 "2023-06-21T10:01:24Z")

</div>

Hi @antonio.vinuelas,

Which version of k6 are you using? If you are working with the latest version ([v0.45.0](https://github.com/grafana/k6/releases/tag/v0.45.0)) then you shouldn’t be facing that issue.

If you are building your own binary from source, then you will likely face this issue if you are working off of the latest `main` branch. What command do you use to create your binary?

Cheers,  
Ankur

---

<div class="post-metadata">

**Author:** ![antonio.vinuelas](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@antonio.vinuelas](https://community.grafana.com/u/antonio.vinuelas)\
**Post date:** [June 21, 2023, 11:21am UTC](https://community.grafana.com/t/error-while-using-chromium-launch/98994/3 "2023-06-21T11:21:36Z")

</div>

Hi @ankur, thank you for the quick answer!

I was using 0.44 but I just updated it as you suggested, but the error is still there. I downloaded k6 through the [official installer](https://dl.k6.io/msi/k6-latest-amd64.msi).  
Do you think going with a clean reinstallation with Chocolatey will solve this?

Thanks again,  
Antonio

---

<div class="post-metadata">

**Author:** ![ankur](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/ankur/32/35773_2.png) [@ankur](https://community.grafana.com/u/ankur)\
**Post date:** [June 26, 2023, 9:57am UTC](https://community.grafana.com/t/error-while-using-chromium-launch/98994/4 "2023-06-26T09:57:39Z")

</div>

Hi @antonio.vinuelas,

I’m not sure why you’re getting that error. To help us reproduce the issue, can you send us:

1. The version of the OS.
2. The version of Chrome.
3. The test script.
4. The command you are using to run the test.
5. The whole output of the failed test run.

Cheers,  
Ankur
