You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where `<your_auth_token>` is from the [proxy-repositories.md](proxy-repositories.md) guide.
388
+
- Check that `<USER_HOME>/.npmrc` / `<USER_HOME>/.yarnrc` don't interfere
389
+
command to debug. Replace versions of tools if needed.
390
+
- When you get the following error — `puppeteer` failed to run the installation script.
391
+
Reasons vary, try updating the version to a newer one,
392
+
check the [.puppeteerrc.cjs](../.puppeteerrc.cjs) and [chrome_bin.js](../karma/chrome_bin.js) files if they are valid js.
393
+
394
+
For (2), check out our guide on configuring puppeteer at https://pptr.dev/guides/configuration.
395
+
at ChromeLauncher.resolveExecutablePath (/rpc/build/js/packages/kotlinx-rpc-utils-test/node_modules/puppeteer-core/lib/cjs/puppeteer/node/ProductLauncher.js:295:27)
396
+
397
+
- When the previous error is gone, you may get the next one.
398
+
399
+
Errors occurred during launch of browser for testing.
400
+
- ChromeHeadless
401
+
Please make sure that you have installed browsers.
402
+
Or change it via
403
+
browser {
404
+
testTask {
405
+
useKarma {
406
+
useFirefox()
407
+
useChrome()
408
+
useSafari()
409
+
}
410
+
}
411
+
}
412
+
This means the `puppeteer` failed to locate Chrome.
413
+
Either the cache dir is wrong (check [.puppeteerrc.cjs](../.puppeteerrc.cjs) file) or it really isn't there.
414
+
<br/>
415
+
Reasons again vary.
416
+
When `npm` installs `puppeteer`, it should execute script to install the browser too
417
+
(On CI to the `<ROOT_DIR>/.puppeteer/browsers` directory).
418
+
This absence may be caused by the `--ignore-scripts` flag.
419
+
Check the clean installation (`rm -rf build && ./gradlew clean cleanJsBrowserTest`) with `--debug` flag.
420
+
(Something like `./gradlew jsBrowserTest --debug`).
421
+
**IMPORTANT: run in docker with `TEAMCITY_VERSION` env var set, if you are chasing a CI fail**.
422
+
<br/>
423
+
The property is set in [npm.kt](../gradle-conventions/src/main/kotlin/util/tasks/npm.kt), see `ignoreScripts`,
424
+
it should be `false`.
425
+
<br/>
426
+
If this is not the case, check the debug log for other `node`-related issues.
0 commit comments