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

It doesn't fall back to other binaries when wait: false #301

Open
x-yuri opened this issue Mar 10, 2023 · 0 comments
Open

It doesn't fall back to other binaries when wait: false #301

x-yuri opened this issue Mar 10, 2023 · 0 comments

Comments

@x-yuri
Copy link

x-yuri commented Mar 10, 2023

I don't have google-chrome, but I have chromium.

const open = require('open');
open('https://google.com', {
    app: {name: open.apps.chrome},
    // wait: true,
});
$ npm i open@8.4.2
$ node index.js
node:events:490
      throw er; // Unhandled 'error' event
      ^

Error: spawn google-chrome ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:285:19)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:291:12)
    at onErrorNT (node:internal/child_process:483:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn google-chrome',
  path: 'google-chrome',
  spawnargs: [ 'https://google.com' ]
}

Node.js v19.6.1

The relevant part of the code.

@x-yuri x-yuri changed the title It doesn't fall back to other binaries whan wait: false It doesn't fall back to other binaries when wait: false Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant