atom/node-keytar

Cannot build Keytar for raspberry pi 4

felix-exon opened this issue · 5 comments

Prerequisites

Description

Steps to Reproduce

  1. Setup Raspbian on Raspi 4
  2. sudo apt-get install libsecret-1-dev
  3. Clone electron project referencing keytar
  4. npm install

Expected behavior:

I expect keytar to build

Actual behavior:

build native dependency from sources  name=keytar
                                      version=7.7.0
                                      platform=linux
                                      arch=armv7l
                                      napi=p
                                      reason=prebuild-install failed with error (run with env DEBUG=electron-builder to get more information)
                                      error=prebuild-install info begin Prebuild-install version 6.1.3
prebuild-install WARN install prebuilt binaries enforced with --force!
prebuild-install WARN install prebuilt binaries may be out of date!
prebuild-install info looking for local prebuild @ prebuilds/keytar-v7.7.0-napi-v3-linux-armv7l.tar.gz
prebuild-install info looking for cached prebuild @ /home/pi/.npm/_prebuilds/c396fd-keytar-v7.7.0-napi-v3-linux-armv7l.tar.gz
prebuild-install http request GET https://github.com/atom/node-keytar/releases/download/v7.7.0/keytar-v7.7.0-napi-v3-linux-armv7l.tar.gz
prebuild-install http 404 https://github.com/atom/node-keytar/releases/download/v7.7.0/keytar-v7.7.0-napi-v3-linux-armv7l.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=3 runtime=napi arch=armv7l libc= platform=linux)

As seen there is no release found:
https://github.com/atom/node-keytar/releases/download/v7.7.0/keytar-v7.7.0-napi-v3-linux-armv7l.tar.gz is not found.

Versions

OS: 5.10.17-v7l+
Node: v14.17.2
npm:6.14.13

Weird, according to

"install": "prebuild-install || npm run build",
it should either try to install the prebuilt binary or build it if that can't be found 🤔

any update on this ? can I provide anything that helps?

Does using yarn instead help?

+1
I have the same issue as well. For some reason, npm rebuild fails with the 404.

I am embedding keytar in an Electron app, and electron-builder shows this issue (with npmRebuild=true). Using electron-rebuild seems to work, but not sure why.

There are a bunch of missing assets in the 7.7.0 release. Their build may have failed. Compare the Assets for 7.7.0 and 7.6.0 in: https://github.com/atom/node-keytar/releases/

Installing keytar@7.6.0 or not using prebuilds may work around the issue in the short term.

It sounds like a dupe of: #417. I would image they would need to run their build again & figure out why it's failing for these architectures.