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)
Yes ๐ญ here is the error message with 2.0.2:
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:
Same on macOS
same, 2.0.2 got EACCESS issue. Using pnpm
also have that same error in 2.0.2 โ confirm that the execute bit is not set:
I navigated to the path in the error, and did a
chmod +x biomeand then re-ran thepnpm execcommand and it worked as expected.Work great @siketyan ! Thanks for your reactivity and overall great job with Biome, really appreciated ๐