Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Cannot build Keytar for raspberry pi 4 #401

Open
6 tasks done
felix-exon opened this issue Jul 5, 2021 · 5 comments
Open
6 tasks done

Cannot build Keytar for raspberry pi 4 #401

felix-exon opened this issue Jul 5, 2021 · 5 comments

Comments

@felix-exon
Copy link

felix-exon commented Jul 5, 2021

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

@sergiou87
Copy link
Collaborator

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 🤔

@felix-exon
Copy link
Author

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

@sergiou87
Copy link
Collaborator

Does using yarn instead help?

@nzapponi
Copy link
Contributor

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

@BitStream1
Copy link

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: #417. I would image they would need to run their build again & figure out why it's failing for these architectures.

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

No branches or pull requests

4 participants