Camoufox failing

I have a project that is using the PlaywrightCrawler from Crawlee. If I create the template camoufox it's running perfectly, when I take the same commands from the package.json of the template and basically following the same example in my project I get the following error:
2025-03-13T11:58:38.513Z [Crawler] [INFO ℹ️] Finished! Total 0 requests: 0 succeeded, 0 failed.
{"terminal":true}
2025-03-13T11:58:38.513Z [Crawler] [ERROR ❌] BrowserLaunchError: Failed to launch browser. Please check the following:
- Check whether the provided executable path "/Users/dp420/.cache/camoufox/Camoufox.app/Contents/MacOS/camoufox" is correct.
- Try installing the required dependencies by running `npx playwright install --with-deps` (https://playwright.dev/docs/browsers).
2025-03-13T11:58:38.513Z [Crawler] [INFO ℹ️] Finished! Total 0 requests: 0 succeeded, 0 failed.
{"terminal":true}
2025-03-13T11:58:38.513Z [Crawler] [ERROR ❌] BrowserLaunchError: Failed to launch browser. Please check the following:
- Check whether the provided executable path "/Users/dp420/.cache/camoufox/Camoufox.app/Contents/MacOS/camoufox" is correct.
- Try installing the required dependencies by running `npx playwright install --with-deps` (https://playwright.dev/docs/browsers).
Of course none of those 2 ideas are helping, camoufox binary is already there, and playwright install --with-deps have been already ran because the project was previously running firefox. the entire error log is attached
3 Replies
Hall
Hall2mo ago
Someone will reply to you shortly. In the meantime, this might help:
like-gold
like-gold2mo ago
Yeah got the same issue and just went with chrome :p if you ever, installed the venv and etc , but it seems like its expecting the binary to be in other place @NeoNomade npx camoufox-js fetch
vicious-gold
vicious-goldOP2mo ago
@nikus found the issue, probably is something in the camoufox-js port. Didn't had time to look into it. I had my crawler script in src/crawler/crawler.ts moved the crawler to src/crawler.ts and worked properly. that was absolutely all.

Did you find this page helpful?