Skip to content

Official strategy for caching of native packages #30139

@nschonni

Description

@nschonni

This might be more of an NPM concern rather than a node-core thing, but I think it might be worth having a discussion here. Some of this might be things that are supposed to be replaced by NAPI.

Currently in node-sass, I just did a home-built pattern of of caching the binding downloads inside the NPM cache. Over our previous release in April 2018, we've had 71M downloads, but without caching it would have been around 3-4MB per install for each download.

It would be good to have a pattern from the node-gyp perspective on how native bindings should use to look-up and cache binding files.

/cc @xzyfer

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that look for answers.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions