-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Unconditional Download during install breaks shrinkpack #3737
Copy link
Copy link
Closed
Labels
Description
Preparing projects for reproducible builds or offline builds with shrinkpack breaks during offline installation if sharp is part of the (nested) dependency list. Installation fails as follows:
$ rm -rf ~/.npm/ # purge NPM cache or run in a clean CI environment
$ npm ci --offline
npm ERR! code 1
npm ERR! path /tmp/bar/node_modules/sharp
npm ERR! command failed
npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm ERR! sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-linux-x64.tar.br
npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! sharp: Installation error: getaddrinfo EAI_AGAIN github.com
The shrinkpack README.md contains further motivational details. Please consider supporting this use case.
Reactions are currently unavailable