mapbox / node-pre-gyp

Node.js tool for easy binary deployment of C++ addons
BSD 3-Clause "New" or "Revised" License
1.11k stars 263 forks source link

prebuild files not fetched when using registry-proxy #673

Closed mknj closed 1 year ago

mknj commented 1 year ago

When using a registry proxy the pre-build sqlite3 files are not fetched. The problem is really annoying when installing sqlite3 in a ci via a docker image like node:16-alpine.

steps to reproduce

terminal 1 / start registry proxy

$ npm i verdaccio
$ ./node_modules/.bin/verdaccio

terminal 2 / use proxy

$ npm i --registry=http://localhost:4873/ sqlite3
...
building from source
...

expected result

the files were fetched from the cdn and no build happens

workaround

mkdir hack;cd hack;npm -y init; npm i --registry=https://registry.npmjs.org/ sqlite3;mv node_modules ..;cd ..
npm i
juanpicado commented 1 year ago

It might be related with https://github.com/verdaccio/verdaccio/issues/3366

mknj commented 1 year ago

fixed in verdaccio@5.18.0