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

keytar doesn't work on docker ubuntu #166

Closed
samuela opened this issue Feb 26, 2019 · 5 comments
Closed

keytar doesn't work on docker ubuntu #166

samuela opened this issue Feb 26, 2019 · 5 comments

Comments

@samuela
Copy link

samuela commented Feb 26, 2019

It produces a rather odd error:

Error: /nuvemfs/node_modules/keytar/build/Release/keytar.node: invalid ELF header
    at Object.<anonymous> (/nuvemfs/node_modules/keytar/lib/keytar.js:1:76)
@ncortines
Copy link

seems like you compiled it for a different architecture

@shiftkey
Copy link
Contributor

seems like you compiled it for a different architecture

This is the essence of the problem. Without more information on reproducing the issue (which architecture you were running it with) as well as details about the install time experience (which version of Node, what happens when you did an npm install) it's really hard to say what the root cause is to confirm this.

@samuela
Copy link
Author

samuela commented May 26, 2019

I'm no longer using keytar.

@samuela samuela closed this as completed May 26, 2019
@AdityaHirapara
Copy link

@samuela what did you use as an alternative here?

@bitclaw
Copy link

bitclaw commented May 11, 2021

@shiftkey Happens for me on Ubuntu 20.04 x64 with the following NPM dependencies:

Electron:
^11.4.2
Node:
12.18.3
Keytar:
^7.7.0

I am building an Electron app with Vue 3. Happens sometimes when I run the following command:

"electron:serve": "vue-cli-service electron:serve",

So to solve it I do an rm -rf node_modules then run yarn install and it resolves itself. I think what actually solves it is the post install app-deps command:

"postinstall": "yarn run lint:fix;yarn run requirements:check;electron-builder install-app-deps",

So the command yarn electron:serve can be this:

"electron:serve": "electron-builder install-app-deps;vue-cli-service electron:serve",

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

No branches or pull requests

5 participants