# 使用 npm 安装 protoc

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

## 安装

```sh
sudo av install npm:protoc
```

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g protoc
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:protoc
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/protoc>
- **版本:** 25.9.0
- **来源摘要:** Installs the protocol buffer compiler "protoc" for you.
- **主页:** <https://github.com/timostamm/protobuf-npm>
- **仓库:** <https://github.com/timostamm/protobuf-npm>
- **上游文档:** <https://github.com/timostamm/protobuf-npm>
- **许可证:** Apache-2.0
- **源码归档:** <https://registry.npmjs.org/protoc/-/protoc-25.9.0.tgz>
- **问题跟踪器:** <https://github.com/timostamm/protobuf-npm/issues>
- **发布时间:** 2026-04-29T21:21:56.749Z
- **最后更新:** 2026-04-29T21:21:56.749Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- protoc (cli)

## 构建依赖

- fflate
- tsx

## 安装行为

- post-install 钩子: 未定义
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 25.9.0
- 管理器更新时间: 2026-04-29
- 本地数据: OK
- 上游仓库: https://github.com/timostamm/protobuf-npm
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 protoc 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 25.9.0, Next: 34.0.0-rc2
- **Version Count:** 120
- **Maintainers:** jinpha, timostamm
- **Author:** Timo Stamm
- **Publisher:** GitHub Actions
- **Engines:** Node: >=20.0.0
- **Integrity:** sha512-65AFS4xp/bgDv00zaVqmhXElCRwhAJxEzBto9mS4ZhiAvicYErbodEqy7dkVGKJWFGhPDfxjQhmOgQtJ91poZg==
- **Shasum:** b717183b87468238f3967fa4a6d1012bd153461b
- **Unpacked Size:** 44,400,245
- **File Count:** 0
- **Created At:** 2017-02-09T23:26:01.061Z
- **Latest Published At:** 2026-04-29T21:21:56.749Z
- **Modified At:** 2026-04-29T21:21:57.090Z

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

- apk - protoc - 31.1-r1: normalized package name match | Alpine Linux edge package indexes: protoc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Protocol buffer compiler binary and library | https://github.com/protocolbuffers/protobuf
- Chocolatey - protoc: normalized package name match | Chocolatey community package catalog: protoc from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','powershell'


## 相关链接

- [MCP tool packages](https://www.automicvault.com/zh-hans/pkg/mcp-tools/) - Matched curated package taxonomy and local package facts.
- [protoc-gen-doc](https://www.automicvault.com/zh-hans/pkg/brew/protoc-gen-doc/) - Local package facts share a topical domain. Shared terms: buffers, protobuf, protoc, protocol.
- [protoc-gen-go](https://www.automicvault.com/zh-hans/pkg/brew/protoc-gen-go/) - Local package facts share a topical domain. Shared terms: buffers, protobuf, protoc, protocol.
- [protoc-gen-js](https://www.automicvault.com/zh-hans/pkg/brew/protoc-gen-js/) - Local package facts share a topical domain. Shared terms: buffers, protobuf, protoc, protocol.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
