Skip to content

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

Closed
@borispetrovdev

Description

@borispetrovdev

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions