# 使用 npm 安装 pkg

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

## 安装

```sh
sudo av install npm:pkg
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g pkg
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:pkg
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/pkg>
- **版本:** 5.8.1
- **来源摘要:** Package your Node.js project into an executable
- **主页:** <https://github.com/vercel/pkg#readme>
- **仓库:** <https://github.com/vercel/pkg>
- **上游文档:** <https://github.com/vercel/pkg#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/pkg/-/pkg-5.8.1.tgz>
- **问题跟踪器:** <https://github.com/vercel/pkg/issues>
- **发布时间:** 2023-03-08T01:20:24.948Z
- **最后更新:** 2023-03-08T01:20:24.948Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- pkg (cli)
- pkg (别名)

## 依赖

- @babel/generator
- @babel/parser
- @babel/types
- chalk
- fs-extra
- globby
- into-stream
- is-core-module
- minimist
- multistream
- pkg-fetch
- prebuild-install
- resolve
- stream-meter

## 构建依赖

- @babel/core
- @types/babel__generator
- @types/escodegen
- @types/fs-extra
- @types/is-core-module
- @types/minimist
- @types/multistream
- @types/node
- @types/resolve
- @types/stream-meter
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- eslint
- eslint-config-airbnb-base
- eslint-config-airbnb-typescript
- eslint-config-prettier
- eslint-plugin-import
- json-stable-stringify
- lint-staged
- mkdirp
- prettier
- rimraf
- simple-git-hooks
- typescript

## 安装行为

- post-install 钩子: 未定义
- npm 生命周期脚本: prepare
- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.8.1
- 管理器更新时间: 2023-03-08
- 本地数据: OK
- 上游仓库: https://github.com/vercel/pkg
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Beta: 4.3.0-beta.4, Canary: 4.3.8-canary.0, Latest: 5.8.1
- **Version Count:** 97
- **Maintainers:** leerobinson
- **Publisher:** leerobinson
- **Peer Dependencies:** node-notifier
- **Integrity:** sha512-CjBWtFStCfIiT4Bde9QpJy0KeH19jCfwZRJqHFDFXfhUklCx8JoFmMj3wgnEYIwGmZVNkhsStPHEOnrtrQhEXA==
- **Shasum:** 862020f3c0575638ef7d1146f951a54d65ddc984
- **Unpacked Size:** 226,525
- **File Count:** 0
- **Created At:** 2012-08-28T11:59:19.842Z
- **Latest Published At:** 2023-03-08T01:20:24.948Z
- **Modified At:** 2026-07-11T22:29:54.608Z

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

- Nix - pkg: normalized package name match | nixpkgs package indexes: pkgs/by-name/pk/pkg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Matched curated package taxonomy and local package facts.
- [pkg-fetch](https://pkg.so/zh-hans/npm/pkg-fetch/) - Both packages touch the same language runtime or ecosystem. Shared terms: chalk, cli, cloud, cloud-infrastructure, deployment.
- [gatsby-plugin-s3](https://pkg.so/zh-hans/npm/gatsby-plugin-s3/) - Local package facts share a topical domain. Shared terms: babel, chalk, cli, cloud, cloud-infrastructure.
- [release](https://pkg.so/zh-hans/npm/release/) - Both packages touch the same language runtime or ecosystem. Shared terms: chalk, cli, cloud, cloud-infrastructure, deployment.

## 来源

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