nodesource / nodesource/distributions

Possibility of supplying header packages?

Open
#1,834 0 comments 0 reactions 1 assignee View on GitHub

@JesusPaz is already working on this.

Since Jan 14, 2025.

request waiting on response from NodeSource
Dominant language
Shell
Stars
13.8k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

In order to compile native modules with node-gyp, you need to have the nodejs header files available. Normally the tarball containing them is downloaded at build time from e.g. https://nodejs.org/download/release/v22.11.0/node-v22.11.0-headers.tar.gz

This is a problem for airgapped/restricted environments where downloading files off the internet is not permitted.

Would it be possible to get a nodejs-dev package published which contains the header files and installs them to a known location which node-gyp can then be pointed to? That would bring nodejs in line with many other Linux packages that provide a -dev package with headers in it.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.