Skip to content

Why does prebuildify have its own headers and node.lib cache? #64

@CMCDragonkai

Description

@CMCDragonkai

I've been trying out prebuildify on Windows, and I noticed it has its own node headers and node.lib cache.

For example:

C:\Users\Roger Qiu\AppData\Local\node-gyp\Cache\16.14.2

Is the node-gyp cache. While

C:\Users\Roger Qiu\AppData\Local\Temp\prebuildify\node\16.14.2

Is prebuildify's node cache.

Considering that many packages are using node-gyp-install as their install script, their cache is likely populated by node-gyp automatically, why is prebuildify then creating its own cache?

I also noticed that node-gyp will automatically fill the target with the current node version. But prebuildify doesn't. Even when node-gyp was using 16.14.2, prebuildify defaulted to 18.0.0, I had to explicitly set the --target=16.14.2 when using prebuildify to ensure it was using the same.

Furthermore on Linux, once I have nodedir set, prebuildify doesn't put anything in /tmp/prebuildify, it only does it on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions