-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Install on secure server without internet access #1805
Copy link
Copy link
Closed
Labels
Description
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 myPackageIt 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.
Reactions are currently unavailable