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.
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.gzThis is a problem for airgapped/restricted environments where downloading files off the internet is not permitted.
Would it be possible to get a
nodejs-devpackage published which contains the header files and installs them to a known location whichnode-gypcan then be pointed to? That would bring nodejs in line with many other Linux packages that provide a-devpackage with headers in it.