Skip to content

手动安装

如果你尚未使用 Node.js 或 npm(或任何其他包管理器),使用 Biome 的独立 CLI 二进制文件可能是一个不错的选择。或者换句话说,Biome 不应该是你拥有 package.json 的唯一原因。

¥Using Biome’s standalone CLI binary can be a great choice if you aren’t already using Node.js or npm (or any other package manager). Or in other words, Biome shouldn’t be the only reason for you to have a package.json.

¥Supported platforms

你必须为你的平台选择正确的二进制文件才能运行 Biome。下表应该可以帮助你做到这一点。

¥You have to pick the correct binary for your platform for Biome work. The following table should help you do so.

CPU 架构WindowsmacOSLinuxLinux (musl)
arm64win32-arm64darwin-arm64(M1 或更新版本)linux-arm64linux-arm64-musl
x64win32-x64darwin-x64linux-x64linux-x64-musl

Biome 可作为 Homebrew 公式 供 macOS 和 Linux 用户使用。

¥Biome is available as a Homebrew formula for macOS and Linux users.

Terminal window
brew install biome

使用已发布的二进制文件

Section titled 使用已发布的二进制文件

¥Using a published binary

要安装 Biome,请从 GitHub 上的 最新 CLI 版本 获取适用于你平台的可执行文件并授予其执行权限。

¥To install Biome, grab the executable for your platform from the latest CLI release on GitHub and give it execution permission.

Terminal window
# macOS arm (M1 or newer)
curl -L https://github.com/biomejs/biome/releases/download/cli%2Fv<version>/biome-darwin-arm64 -o biome
chmod +x biome
# Linux (x86_64)
curl -L https://github.com/biomejs/biome/releases/download/cli%2Fv<version>/biome-linux-x64 -o biome
chmod +x biome
# Windows (x86_64, Powershell)
Invoke-WebRequest -Uri "https://github.com/biomejs/biome/releases/download/cli%2Fv<version>/biome-win32-x64.exe" -OutFile "biome.exe"

现在你只需运行 ./biome 即可使用 Biome。

¥Now you can use Biome by simply running ./biome.

¥Next Steps

遵循我们的 入门指南

¥Follow our Getting Started guide.