# 使用 Homebrew, apk, apt, Nix, pacman, zypper 安装 esbuild

查看 esbuild 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:esbuild
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install esbuild
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add esbuild
```

  证据: Alpine Linux edge package indexes: esbuild from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install esbuild
```

  证据: Debian stable package indexes: esbuild from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#esbuild
```

  证据: nixpkgs package indexes: pkgs/by-name/es/esbuild/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S esbuild
```

  证据: Arch Linux sync databases: esbuild from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install esbuild
```

  证据: openSUSE Tumbleweed package metadata: esbuild from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:esbuild
- **软件包管理器:** Homebrew
- **版本:** 0.28.1
- **来源摘要:** Extremely fast JavaScript bundler and minifier
- **主页:** <https://esbuild.github.io/>
- **仓库:** <https://github.com/evanw/esbuild>
- **最后更新:** 2026-07-25T14:23:18-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- esbuild (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.28.1
## 项目历史与用法

esbuild is a JavaScript and CSS bundler and minifier whose package identity is built around speed: its upstream README describes the project goal as making web build tools far faster while still providing a modern, easy-to-use bundler.

### 项目历史

The project is developed in the evanw/esbuild repository and is documented on esbuild.github.io. Its public npm release history shows 0.1.0 published in April 2020, followed by rapid 0.x releases as the tool accumulated bundling, minification, TypeScript, JSX, CSS, source-map, watch, serve, and plugin capabilities.

esbuild's design is deliberately different from traditional JavaScript build tools: it ships as native code, exposes CLI, JavaScript, and Go APIs, and emphasizes doing parsing, printing, bundling, and minification without a cache. The upstream README frames this as a response to existing web build tools being much slower than necessary.

### 采用历史

The package became important in JavaScript tooling because it offered a fast native binary through ordinary package-manager workflows. The npm package is the primary JavaScript distribution, while Homebrew and multiple Unix package managers carry command-line builds for system-level installation.

Its adoption pattern differs from older bundlers such as webpack and Rollup: many projects use esbuild directly for fast bundling or minification, while others use it as an embedded transform/minify engine behind higher-level developer tools.

### 使用方式

Common use is direct CLI invocation for bundling, minifying, transforming, or serving web assets, or calling the JavaScript API from build scripts. The official docs also document a Go API, loaders for JavaScript, TypeScript, JSX, CSS, JSON, text, and binary assets, and a plugin system for custom resolution and loading.

For package-manager users, esbuild is notable because installation has to land the correct platform-specific executable. The official getting-started documentation discusses npm installation details and additional npm flags, while Homebrew exposes a single `esbuild` command for local use.

### 为什么软件包爱好者会关心

esbuild changed expectations for JavaScript package tooling latency. Package nerds care because it made native, single-purpose build executables feel normal in frontend toolchains, and because its versioned binary distribution model sits at the intersection of npm packages, system packages, and reproducible builds.

It is also a useful comparison point for later tools: when a new bundler, transpiler, or dev server advertises speed, esbuild is one of the baseline projects people instinctively measure against.

### 时间线

- 2020: esbuild 0.1.0 published to npm.
- 2020: 0.8.0-era releases show the project already moving quickly through bundler and transform features.
- 2021: 0.14.x releases continue the long-running pre-1.0 cadence.
- 2026: 0.28.x releases still ship active fixes and platform/package integrity work.

### Related projects

- Related tools in the same package-manager conversation include webpack, Rollup, SWC, Babel, Terser, and Vite. esbuild overlaps with several of them but is commonly valued for fast transform, bundle, and minify paths rather than as an all-purpose application framework.

### 来源

- <https://github.com/evanw/esbuild>
- <https://esbuild.github.io/>
- <https://esbuild.github.io/api/>
- <https://esbuild.github.io/getting-started/>
- <https://github.com/evanw/esbuild/blob/main/CHANGELOG.md>
- <https://www.npmjs.com/package/esbuild>
- <https://formulae.brew.sh/formula/esbuild>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - esbuild - 0.25.5-1+b1: normalized package name match | Debian stable package indexes: esbuild from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | extremely fast JavaScript bundler and minifier (program) | https://github.com/evanw/esbuild
- Nix - esbuild: normalized package name match | nixpkgs package indexes: pkgs/by-name/es/esbuild/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - esbuild - 0.20.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: esbuild from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | extremely fast JavaScript bundler and minifier (program) | https://github.com/evanw/esbuild
- apk - esbuild - 0.27.1-r7: normalized package name match | Alpine Linux edge package indexes: esbuild from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Extremely fast JavaScript bundler and minifier | https://esbuild.github.io/
- apk - esbuild-doc - 0.27.1-r7: normalized package name match | Alpine Linux edge package indexes: esbuild-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Extremely fast JavaScript bundler and minifier (documentation) | https://esbuild.github.io/
- pacman - esbuild - 0.28.1-1: normalized package name match | Arch Linux sync databases: esbuild from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An extremely fast JavaScript and CSS bundler and minifier. | https://esbuild.github.io/
- zypper - esbuild - 0.28.1-1.3: normalized package name match | openSUSE Tumbleweed package metadata: esbuild from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A JavaScript bundler written for speed | https://esbuild.github.io


## Combined YAML source

View the package source record on GitHub. [combined/esbuild.yml](https://github.com/mxcl/pkgdb/blob/main/combined/esbuild.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
