node-keytar icon indicating copy to clipboard operation
node-keytar copied to clipboard

Cannot build Keytar for raspberry pi 4

Open felix-exon opened this issue 3 years ago • 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

felix-exon avatar Jul 05 '21 21:07 felix-exon

Weird, according to https://github.com/atom/node-keytar/blob/12484088ce0980a903627b6fc7ddaaf02188e982/package.json#L33 it should either try to install the prebuilt binary or build it if that can't be found 🤔

sergiou87 avatar Jul 19 '21 07:07 sergiou87

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

felix-exon avatar Aug 09 '21 11:08 felix-exon

Does using yarn instead help?

sergiou87 avatar Aug 09 '21 13:08 sergiou87

+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.

nzapponi avatar Sep 14 '21 23:09 nzapponi

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 [email protected] or not using prebuilds may work around the issue in the short term.

It sounds like a dupe of: https://github.com/atom/node-keytar/issues/417. I would image they would need to run their build again & figure out why it's failing for these architectures.

BitStream1 avatar Nov 18 '21 07:11 BitStream1