biome: ๐Ÿ› 2.0.1 `@biomejs/cli-linux-x64` broken?

Environment information

biome rage result: N/A (Biome can't even launch)
  • Windows 11 + WSL 2 (me)
  • Mac OS (see comment)

What happened?

Hi, Iโ€™ve just installed the latest Biome in a new project.

Any biome command results in the following error:

Error: Cannot find module '@biomejs/cli-linux-x64/biome'
Require stack:
- /tmp/biome-v2-test/node_modules/@biomejs/biome/bin/biome
    at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)
    at Function.resolve (node:internal/modules/helpers:145:19)
    at Object.<anonymous> (/tmp/biome-v2-test/node_modules/@biomejs/biome/bin/biome:48:11)
    at Module._compile (node:internal/modules/cjs/loader:1730:14)
    at Object..js (node:internal/modules/cjs/loader:1895:10)
    at Module.load (node:internal/modules/cjs/loader:1465:32)
    at Function._load (node:internal/modules/cjs/loader:1282:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/tmp/biome-v2-test/node_modules/@biomejs/biome/bin/biome' ]
}

Node.js v22.16.0

Apparently @biome/cli-linux-x86 package doesnโ€™t contain the biome binary.

https://www.npmjs.com/package/@biomejs/cli-linux-x64/v/2.0.1?activeTab=code

(Other platforms may be affected too, sorry I havenโ€™t checked)

Expected result

Should work.

Code of Conduct

  • I agree to follow Biomeโ€™s Code of Conduct

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 24
  • Comments: 16 (6 by maintainers)

Most upvoted comments

Yes ๐Ÿ˜ญ here is the error message with 2.0.2:

$ npx biome rage
/tmp/biome-v2-test/node_modules/@biomejs/biome/bin/biome:65
                throw result.error;
                ^

Error: spawnSync /tmp/biome-v2-test/node_modules/@biomejs/cli-linux-x64/biome EACCES
    at Object.spawnSync (node:internal/child_process:1120:20)
    at Object.spawnSync (node:child_process:868:24)
    at Object.<anonymous> (/tmp/biome-v2-test/node_modules/@biomejs/biome/bin/biome:47:42)
    at Module._compile (node:internal/modules/cjs/loader:1730:14)
    at Object..js (node:internal/modules/cjs/loader:1895:10)
    at Module.load (node:internal/modules/cjs/loader:1465:32)
    at Function._load (node:internal/modules/cjs/loader:1282:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) {
  errno: -13,
  code: 'EACCES',
  syscall: 'spawnSync /tmp/biome-v2-test/node_modules/@biomejs/cli-linux-x64/biome',
  path: '/tmp/biome-v2-test/node_modules/@biomejs/cli-linux-x64/biome',
  spawnargs: [ 'rage' ]
}

Node.js v22.16.0

v2.0.2 is out, which seems to fix it. But I get EACCESS due to the execute bit missing on the binary.

For people coming here, donโ€™t upgrade to 2.0.1 because itโ€™s broken. Stick to 2.0.0 until a new version is out

Both 2.0.1 and 2.02 are broken for me on macOS as well.

(2.0.0 runs fine.)

We have released a new version @biomejs/biome@2.0.4, which should work.

Quick fix, run this from your project root to fix the execute bit flag:

chmod +x node_modules/@biomejs/cli-darwin-arm64/biome

Same on macOS

Error: Cannot find module '@biomejs/cli-darwin-arm64/biome'

same, 2.0.2 got EACCESS issue. Using pnpm

/@biomejs+biome@2.0.2/node_modules/@biomejs/biome/bin/biome:65
		throw result.error;
		^

Error: spawnSync node_modules/.pnpm/@biomejs+cli-linux-x64@2.0.2/node_modules/@biomejs/cli-linux-x64/biome EACCES
    at Object.spawnSync (node:internal/child_process:11[20](https://github.com/zala-team/zala-web/actions/runs/15788566697/job/44510123917?pr=632#step:7:21):20)
    at Object.spawnSync (node:child_process:868:24)

also have that same error in 2.0.2 โ€“ confirm that the execute bit is not set:

Image

I navigated to the path in the error, and did a chmod +x biome and then re-ran the pnpm exec command and it worked as expected.

We have released a new version @biomejs/biome@2.0.4, which should work.

Work great @siketyan ! Thanks for your reactivity and overall great job with Biome, really appreciated ๐Ÿ‘