Skip to content

Error: spawn /Applications/Firefox.app/Contents/MacOS/firefox-bin ENOENT #125

Description

@Krinkle

As of Firefox 121 (released Dec 2023), Mozilla no longer includes a firefox-bin inside the bundle for macOS.

The good news is that the replacement, firefox has been around for 10+ years. So it is safe to change this.

Prior art:

The problem originates in the browser-launcher dependency, but I'm reporting it here because that package no longer has a source or issue tracker since https://github.com/substack account was deleted.

pass.js:

console.log('TAP version 13');
console.log('ok 1 Foo bar');
console.log('ok 2 Baz > this thing');
console.log('ok 3 Baz > another thing');
console.log('ok 4 Quux');
console.log('1..4');

package.json:

{
  "private": true,
  "scripts": {},
  "devDependencies": {
    "testling": "^1.7.7"
  }
}
$ cat pass.js | npx testling
node:events:485
      throw er; // Unhandled 'error' event
      ^

Error: spawn /Applications/Firefox.app/Contents/MacOS/firefox-bin ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:292:12)
    at onErrorNT (node:internal/child_process:484:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn /Applications/Firefox.app/Contents/MacOS/firefox-bin',
  path: '/Applications/Firefox.app/Contents/MacOS/firefox-bin',
  spawnargs: [
    '--no-remote',
    '-CreateProfile',
    'browser-launcher-f7bc84eec54f4 /Users/krinkle/.config/browser-launcher/firefox-browser-launcher-f7bc84eec54f4'
  ]
}

Node.js v23.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions