Problem
When installing libpg-query@16.3.0 on Node 22 (macOS arm64), npm attempts to download a prebuilt binary but receives a 403 Forbidden error:
npm error node-pre-gyp http GET https://gnbyoxcowpfpalflhptv.supabase.co/storage/v1/s3/libpg-query-node/queryparser-v16.3.0-node-v127-darwin-arm64.tar.gz
npm error node-pre-gyp ERR! install response status 403 Forbidden on https://gnbyoxcowpfpalflhptv.supabase.co/storage/v1/s3/libpg-query-node/queryparser-v16.3.0-node-v127-darwin-arm64.tar.gz
npm error node-pre-gyp WARN Pre-built binaries not installable for libpg-query@16.3.0 and node@22.12.0 (node-v127 ABI, unknown) (falling back to source compile with node-gyp)
Unfortunately, the fallback source compile also fails, but that failure is not the central point of this ticket. I'll include details below.
Environment
- Node.js: 22.12.0
- OS: macOS 15.4.1 on Apple Silicon
- libpg-query: 16.3.0
- npm: 10.9.0
Steps to Reproduce
- Use Node 22.12.0 on macOS arm64.
- Run
npm install libpg-query.
Observed Behavior
- npm tries to download the prebuilt binary from the Supabase storage URL above.
- The request returns a 403 Forbidden.
- npm then attempts to build from source, which fails due to a missing or incompatible system function (
strchrnul), likely related to the macOS deployment target.
Expected Behavior
- The prebuilt binary should be downloadable, so I shouldn't be falling back to the failing source compile.
Additional Notes
- This setup worked previously, so the 403 may be due to a recent change in storage permissions or a missing upload.
- The fallback "compile from source" fails with the following error(s):
error: static declaration of 'strchrnul' follows non-static declaration and note: 'strchrnul' has been marked as being introduced in macOS 15.4 here, but the deployment target is macOS 10.7.0
Any help restoring access to the prebuilt binary or guidance on building from source would be appreciated!
Problem
When installing
libpg-query@16.3.0on Node 22 (macOS arm64), npm attempts to download a prebuilt binary but receives a 403 Forbidden error:Unfortunately, the fallback source compile also fails, but that failure is not the central point of this ticket. I'll include details below.
Environment
Steps to Reproduce
npm install libpg-query.Observed Behavior
strchrnul), likely related to the macOS deployment target.Expected Behavior
Additional Notes
error: static declaration of 'strchrnul' follows non-static declarationandnote: 'strchrnul' has been marked as being introduced in macOS 15.4 here, but the deployment target is macOS 10.7.0Any help restoring access to the prebuilt binary or guidance on building from source would be appreciated!