-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[BUG] Cannot find a MiniBrowser.app in neither location #2660
Comments
Can you tell us more about how you installed playwight originally when it ended up having not browsers downloaded? I also noticed that you are running tests under user |
Apologies for the delay in getting back to you. I tried to censor my homedir name for the bug report, but clearly caused more confusion! Here's an installation log, as per the instructions on the site. The initial ant@apse /home/ant/Projects/playwright-test npm i -D playwright
> [email protected] install /home/ant/Projects/playwright-test/node_modules/playwright
> node install.js
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
+ [email protected]
added 37 packages from 82 contributors and audited 37 packages in 4.085s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
ant@apse /home/ant/Projects/playwright-test vim script.js
ant@apse /home/ant/Projects/playwright-test node script.js
(node:1338426) UnhandledPromiseRejectionWarning: Error: Failed to launch browser: Error: spawn /home/ant/.cache/ms-playwright/chromium-775089/chrome-linux/chrome ENOENT
=================== chromium.launch logs ===================
<launching> /home/ant/.cache/ms-playwright/chromium-775089/chrome-linux/chrome --disable-background-networking --enable-features=NetworkService,NetworkServiceInProcess --disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-breakpad --disable-client-side-phishing-detection --disable-component-extensions-with-background-pages --disable-default-apps --disable-dev-shm-usage --disable-extensions --disable-features=TranslateUI,BlinkGenPropertyTrees,ImprovedCookieControls,SameSiteByDefaultCookies --disable-hang-monitor --disable-ipc-flooding-protection --disable-popup-blocking --disable-prompt-on-repost --disable-renderer-backgrounding --disable-sync --force-color-profile=srgb --metrics-recording-only --no-first-run --enable-automation --password-store=basic --use-mock-keychain --user-data-dir=/tmp/playwright_chromiumdev_profile-FgBsBG --remote-debugging-pipe --headless --hide-scrollbars --mute-audio --no-startup-window
============================================================
Note: use DEBUG=pw:api environment variable and rerun to capture Playwright logs.
at ChildProcess.<anonymous> (/home/ant/Projects/playwright-test/node_modules/playwright/lib/server/processLauncher.js:51:20)
at Object.onceWrapper (events.js:422:26)
at ChildProcess.emit (events.js:315:20)
at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1338426) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:1338426) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. |
Just as further useful information:
|
Currently, Ctrl-C while extracting browser might yield users in a bad place. This patch adds a marker file inside browser directory to make sure that browser extraction completed. Note: this was already attempted in microsoft#2489, but was eventually reverted in microsoft#2534. References microsoft#2660
will do as soon as I get a minute! thanks :) |
I think... I have a different error. Still an error though.
In the chromium download dir:
firefox:
Not going to enumerate webkit as you've said it doesn't work. |
@antony this is very peculiar. I see there's the following NPM error: npm WARN saveError ENOENT: no such file or directory, open '/home/ant/Projects/pw-test/package.json' Which means you're installing to a directory without ~/prog$ mkdir tmp
~/prog/tmp$ npm init -y
~/prog/tmp$ npm i is-admin # install simple package to create package-lock.json
~/prog/tmp$ rm package.json # remove package.json
~/prog/tmp$ npm i -D playwright@next But it still installs nicely for me... I'm running node v14.4.0 & npm v6.14.5. Any chance you can lead me step-by-step? Anything unusual in your setup that might help me reproduce your issue locally? Also, our WebKit now support Ubuntu-20.04, so feel free to try it out. |
I figured it out! I was using node v14 as I've been upgrading a bunch of my projects. I dropped to v12 and it works absolutely fine. I hope I haven't wasted anyone's time. Is it worth adding some messaging if you try to install on an (I assume) unsupported node version? |
Context:
node ./node_modules/playwright/install.js
since the original install resulted in having no browsers installed.Code Snippet
Describe the bug
I don't appear to run anything, since the browser says it was closed.
The text was updated successfully, but these errors were encountered: