GitHub Actionsでbiomeコマンドが見つからない問題の対処法

PRのコンフリクトを修正するためにpackage-lock.jsonを再生成した後、biomeコマンドがGitHub Actions環境で見つからなくなった. https://github.com/n...

biome

github-actions

npm

PRのコンフリクトを修正するためにpackage-lock.jsonを再生成した後、biomeコマンドがGitHub Actions環境で見つからなくなった.

https://github.com/npm/cli/issues/4828 によると、

  • node_modulesにMacOS用のバイナリがインストールされている
> biome lint ./

node:internal/modules/cjs/loader:1210
  throw err;
  ^

Error: Cannot find module '@biomejs/cli-linux-x64/biome'
Require stack:
- /home/runner/work/koka831.github.io/koka831.github.io/node_modules/@biomejs/biome/bin/biome

Commits

2026-04-28 13:19:45 test(lib): tighten content schema and cover transformers/excerpt 4cffd434 +
commit 4cffd434e0c7643f971f8dbf3709ec4e6ea0a76a
Author: koka <koka.code@gmail.com>
Date:   Tue Apr 28 13:19:45 2026 +0900

    test(lib): tighten content schema and cover transformers/excerpt

diff --git a/_posts/2026-01-06-biome-not-found.md b/_posts/2026-01-06-biome-not-found.md
index 919ee9c7..a80ce233 100644
--- a/_posts/2026-01-06-biome-not-found.md
+++ b/_posts/2026-01-06-biome-not-found.md
@@ -1,6 +1,8 @@
 ---
 title: "GitHub Actionsでbiomeコマンドが見つからない問題の対処法"
 date: 2023-12-06
+categories: [tooling]
+tags: [biome, github-actions, npm]
 ---
 
 PRのコンフリクトを修正するためにpackage-lock.jsonを再生成した後、`biome`コマンドがGitHub Actions環境で見つからなくなった.
2026-04-27 09:52:12 chore: tooling and content updates 441c15b5 +
commit 441c15b5ba9b6f30c386de4084ffefde266cacd0
Author: koka <koka.code@gmail.com>
Date:   Mon Apr 27 09:52:12 2026 +0900

    chore: tooling and content updates
    
    - biome.json: exclude /dist and /.astro from lint, drop the obsolete
      prism-gruvbox.css ignore.
    - Add public/robots.txt.
    - Add _posts/2026-01-06-biome-not-found.md.

diff --git a/_posts/2026-01-06-biome-not-found.md b/_posts/2026-01-06-biome-not-found.md
new file mode 100644
index 00000000..919ee9c7
--- /dev/null
+++ b/_posts/2026-01-06-biome-not-found.md
@@ -0,0 +1,21 @@
+---
+title: "GitHub Actionsでbiomeコマンドが見つからない問題の対処法"
+date: 2023-12-06
+---
+
+PRのコンフリクトを修正するためにpackage-lock.jsonを再生成した後、`biome`コマンドがGitHub Actions環境で見つからなくなった.
+
+https://github.com/npm/cli/issues/4828 によると、
+- `node_modules`にMacOS用のバイナリがインストールされている
+
+```text
+> biome lint ./
+
+node:internal/modules/cjs/loader:1210
+  throw err;
+  ^
+
+Error: Cannot find module '@biomejs/cli-linux-x64/biome'
+Require stack:
+- /home/runner/work/koka831.github.io/koka831.github.io/node_modules/@biomejs/biome/bin/biome
+```

Comments