Skip to content

403 Forbidden: Pre-built binaries not installable for [email protected] and [email protected] #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
borispetrovdev opened this issue May 5, 2025 · 1 comment

Comments

@borispetrovdev
Copy link

borispetrovdev commented May 5, 2025

Problem

When installing [email protected] 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 [email protected] and [email protected] (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

  1. Use Node 22.12.0 on macOS arm64.
  2. 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!

@borispetrovdev borispetrovdev changed the title install response status 403 Forbidden 403 Forbidden: Pre-built binaries not installable for [email protected] and [email protected] May 5, 2025
@borispetrovdev
Copy link
Author

Update: I was able to overcome the failing "compile from source" by upgrading from 16.3 to 17 (see: #87)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant