Skip to content

Install on secure server without internet access #1805

@gilly3

Description

@gilly3

Is it possible to install sharp on a server without internet access? My server has access to a private npm registry, but not to github.com. I have added sharp as a project dependency, and when I go to install my project on my secure server, it always attempts to download libvips. This, even when I specify:

$ npm i --build-from-source myPackage

It hangs on:

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.7.4/libvips-8.7.4-linux-x64.tar.gz

It's not surprising that it hangs, since the server is isolated from the web. But, I thought that installing myPackage (which depends on sharp) with --build-from-source would cause it to skip that step.

I think I prefer to build from source, but alternatively I can set up a mirror to download whatever is required from within my network, if there is a setting that allows specifying a download mirror.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions