# 使用 Homebrew, apk, Nix 安装 protoc-gen-js

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

## 安装

```sh
sudo av install brew:protoc-gen-js
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install protoc-gen-js
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add protoc-gen-js
```

  证据: Alpine Linux edge package indexes: protoc-gen-js from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#protoc-gen-js
```

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

## 软件包事实

- **软件包键:** brew:protoc-gen-js
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/protoc-gen-js>
- **版本:** 4.0.2
- **来源摘要:** Protocol buffers JavaScript generator plugin
- **主页:** <https://github.com/protocolbuffers/protobuf-javascript>
- **仓库:** <https://github.com/protocolbuffers/protobuf-javascript>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/protocolbuffers/protobuf-javascript/archive/refs/tags/v4.0.2.tar.gz>
- **最后更新:** 2026-06-20T05:07:45Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- protoc-gen-js (cli)
- protoc-gen-js (别名)

## 依赖

- abseil
- protobuf

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.0.2
- 管理器更新时间: 2026-06-20
- 本地数据: OK
- 上游仓库: https://github.com/protocolbuffers/protobuf-javascript
- 检测到的最新版本: v4.0.2 (当前)

## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** protoc-gen-js
- **Version Scheme:** 0
- **Revision:** 4
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - protoc-gen-js: normalized package name match | nixpkgs package indexes: pkgs/by-name/pr/protoc-gen-js/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - protoc-gen-js - 4.0.2-r0: normalized package name match | Alpine Linux edge package indexes: protoc-gen-js from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | protoc-gen-js javascript protobuf generator | https://github.com/protocolbuffers/protobuf-javascript


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [protobuf](https://pkg.so/zh-hans/brew/protobuf/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [protoc-gen-grpc-web](https://pkg.so/zh-hans/brew/protoc-gen-grpc-web/) - Popular package that depends on this formula.
- [protoc-gen-go](https://pkg.so/zh-hans/brew/protoc-gen-go/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf, protoc-plugin.
- [protoc-gen-grpc-swift](https://pkg.so/zh-hans/brew/protoc-gen-grpc-swift/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf, protoc-plugin.
- [protoc-gen-grpc-java](https://pkg.so/zh-hans/brew/protoc-gen-grpc-java/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf, protoc-plugin.
- [buf](https://pkg.so/zh-hans/brew/buf/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript.
- [angular-cli](https://pkg.so/zh-hans/brew/angular-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript.
- [protoc-gen-go-grpc](https://pkg.so/zh-hans/brew/protoc-gen-go-grpc/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf, protoc-plugin.
- [protoc-gen-doc](https://pkg.so/zh-hans/brew/protoc-gen-doc/) - Package names and metadata indicate a similar tool family. Shared terms: buffers, cli, code, code-generation, developer.
- [protoc-gen-js](https://pkg.so/zh-hans/npm/protoc-gen-js/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
