# Install pkg with npm

Package your Node.js project into an executable. Version 5.8.1 via npm; verified 2023-03-08. Also installable with nix: nix profile install nixpkgs#pkg.

## Install

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

Additional install commands:

### Portable and language managers

- npm (100%):

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

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:pkg
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/pkg>
- **Version:** 5.8.1
- **Source summary:** Package your Node.js project into an executable
- **Homepage:** <https://github.com/vercel/pkg#readme>
- **Repository:** <https://github.com/vercel/pkg>
- **Upstream docs:** <https://github.com/vercel/pkg#readme>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/pkg/-/pkg-5.8.1.tgz>
- **Issue tracker:** <https://github.com/vercel/pkg/issues>
- **Published:** 2023-03-08T01:20:24.948Z
- **Last updated:** 2023-03-08T01:20:24.948Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- pkg (cli)
- pkg (alias)

## Dependencies

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

## Build dependencies

- @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

## Install behavior

- Post-install hook: not defined
- Lifecycle scripts: prepare
- Bottle: not available

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 5.8.1
- Package-manager updated: 2023-03-08
- Local data: ok
- Upstream repository: https://github.com/vercel/pkg
- warning: The package-manager record has not been updated in over a year.
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for pkg. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **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

## Other Package-Manager Records

- 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


## Related links

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

## Sources

- 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
