@sunjingyun/pkg-fetch
v3.6.2
Published
Compiles and stores base binaries for pkg
Readme
A utility to fetch or build patched Node binaries used by pkg to generate executables.
Patched Node versions
Exact Node versions with patches under patches/ (aliases such as node24 resolve to the newest matching entry):
| Version | Notes |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| v24.18.0 | Supported. Loader patches follow Node 22+/24 (package_json_reader.read + cjs/loader.stat via patched fs) so snapshot module resolution works. |
| v20.20.0 | Supported / previously verified |
| v20.10.0 | Supported / previously verified |
| v19.8.1 | Legacy |
| v18.18.2 | Legacy |
| v16.20.2 | Legacy |
| v14.21.3 | Legacy |
| v12.22.11 | Legacy |
| v10.24.1 | Legacy |
| v8.17.0 | Legacy |
node24 / latest currently resolve to v24.18.0. Example:
pkg-fetch --node-range node24.18.0 --platform linux --arch x64 --force-build --testBinary Compatibility
| Node | Platform | Architectures | Minimum OS version | | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ------------------------- | --------------------------------------------------------------------------------- | | 81, 101, 121, 141, 161, 18 | alpine | x64, arm64 | 3.7.3, other distros with musl libc >= 1.1.18 | | 81, 101, 121, 141, 161, 18, 20, 24.18.04 | linux | x64 | Enterprise Linux 7, Ubuntu 14.04, Debian jessie, other distros with glibc >= 2.17 | | 81, 101, 121, 141, 161, 18 | linux | arm64 | Enterprise Linux 8, Ubuntu 18.04, Debian buster, other distros with glibc >= 2.27 | | 81, 101, 121, 141, 161, 18 | linuxstatic | x64, arm64 | Any distro with Linux Kernel >= 2.6.32 (>= 3.10 strongly recommended) | | 161, 18, 20 | linuxstatic | armv72 | Any distro with Linux Kernel >= 2.6.32 (>= 3.10 strongly recommended) | | 81, 101, 121, 141, 161, 18 | macos | x64 | 10.13 | | 141, 161, 18, 20 | macos | arm643 | 11.0 | | 81, 101, 121, 141, 161, 18 | win | x64 | 8.1 | | 141, 161, 18, 20 | win | arm64 | 10 |
[1]: end-of-life, may be removed in the next major release.
[2]: best-effort basis, not semver-protected.
[3]: mandatory code signing is enforced by Apple.
[4]: Patched as v24.18.0. Verified by building and packaging on Debian 12 (bookworm) / glibc, host Ubuntu 24.04.
