Skip to content

Ghost binary dependencies cause installation issues #29

@rubycon

Description

@rubycon

When trying to install the package on some platform/arch the process quit unexpectedly with a "Package not found" error (See #9). It seems NPM or Yarn try to fetch binary sub-dependencies that don't exist.

Officially, the webviewjs package supports 7 targets :

  • x86_64-apple-darwin
  • x86_64-pc-windows-msvc
  • i686-pc-windows-msvc
  • aarch64-apple-darwin
  • aarch64-linux-android
  • armv7-linux-androideabi
  • aarch64-pc-windows-msvc

But the package NAPI config list 5 more :

  • x86_64-unknown-linux-gnu
  • i686-unknown-linux-gnu
  • aarch64-unknown-linux-gnu
  • armv7-unknown-linux-gnueabihf
  • x86_64-unknown-freebsd

The published package package.json list 9 targets and their corresponding optional dependencies :

Target Package Available
x86_64-pc-windows-msvc @webviewjs/webview-win32-x64-msvc
i686-pc-windows-msvc @webviewjs/webview-win32-ia32-msvc
aarch64-pc-windows-msvc @webviewjs/webview-win32-arm64-msvc
x86_64-apple-darwin @webviewjs/webview-darwin-x64
aarch64-apple-darwin @webviewjs/webview-darwin-arm64
x86_64-unknown-linux-gnu @webviewjs/webview-linux-x64-gnu
aarch64-linux-android @webviewjs/webview-android-arm64
armv7-linux-androideabi @webviewjs/webview-android-arm-eabi
x86_64-unknown-freebsd @webviewjs/webview-freebsd-x64

However, two of these binary dependencies don't exists and cause installation issues.

Tested with Yarn 4.12 and NPM 11.7 (Node 22.21 on MacOs 11.6)

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