Comments (16)
@BinaryMuse that solved it! Thank you!
Steps for mac:
npm install --save-dev electron-rebuild
./node_modules/.bin/electron-rebuild
I got some errors, on some packages but the keytar worked fine and now i'm able to run the app.
from node-keytar.
npm rebuild
didn't work for me.
Here's the error I'm getting:
keytar.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 51. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or`npm install`).
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at /Users/jknott/Dropbox (Personal)/dev/ottter/desktop/node_modules/keytar/lib/keytar.js:1:161
at Object.<anonymous> (/project/node_modules/keytar/lib/keytar.js:55:2)
I'm on node 6.10 and npm 4.2.0
from node-keytar.
delete node_module and run npm i
from node-keytar.
Unless I'm mistaken, npm rebuild
will just rebuild the module against Node's version, not Electron's. You'll need to use one of the methods in the Using Native Node Modules documentation.
from node-keytar.
Can somebody send steps to resolve issue in Windows?
from node-keytar.
Having the same issue.
from node-keytar.
@alexcroox @jgknott does an npm rebuild
fix the issue? If not, more information about your setup and steps to reproduce this is necessary...
from node-keytar.
I'm on node
6.10
and npm4.2.0
These seem recent enough. Any thoughts @BinaryMuse on why they might still be seeing this error?
from node-keytar.
I'm running node 7.6.0
and npm 4.1.2
from node-keytar.
Does this mean the dev environment needs to be setup on each target OS and the module rebuilt on each? Or does a rebuild once on Mac cover all OS's?
from node-keytar.
Does this mean the dev environment needs to be setup on each target OS and the module rebuilt on each?
@alexcroox yes, because the native toolchain is OS-dependent
from node-keytar.
Hi, i am new in using the firmware and i encounter the problem as below :
The module '\?\C:\Users\user.atom\packages\Pymakr\precompiles\serialport-win\build\Release\serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 49. This version of Node.js requires
NODE_MODULE_VERSION 53. Please try re-compiling or re-installing
the module (for instance, using npm rebuild
ornpm install
).
May i know how can i fix it? Thanks
from node-keytar.
@liowmei Read the comment of @BinaryMuse and @jgknott ;)
I am using serialport too, and this worked like a charm !
from node-keytar.
@massi67 did you try what @Arthaclarius said?
from node-keytar.
the same issue !, please any suggestion
from node-keytar.
Hi, folks,
Please see the comment that I posted earlier. You'll need to follow the instructions on the Using Native Node Modules page on the Electron site. I personally use and recommend the strategy described in Installing modules and rebuilding for Electron, which describes how to fix this problem with the electron-rebuild package.
Since the original issue is solved, I'm going to lock this issue. If you have a different problem, or have tried the above steps and it doesn't work, then please create a new issue and we can work to resolve it separately.
from node-keytar.
Related Issues (20)
- Prebuild problem on Windows HOT 1
- Not being able to install on Windows. v8.h missing
- electron-rebuild fails after updating keytar to 7.7.0
- WSL Support
- Upgrade dependencies' major versions HOT 7
- https://www.instagram.com/p/CaAP2_VsEFp/?utm_medium=copy_linkc
- [win] handle different value for cred.Persist = CRED_PERSIST_ENTERPRISE;
- [Windows] Old credential comes back after current one is deleted HOT 3
- Keytar installation fails on Alpine Linux (Docker image) HOT 1
- Switch to prebuildify & node-gyp-build HOT 2
- Proposal: Support buffers for binary keychain data
- Not attempting prebuilt install
- setPassword error
- Add a new setPasswordDescription method
- Opt out from having the service name implicitly be concatenated with the account name on windows.
- Setting a password throws strange Error: �ڴ���Դ���㣬�����������” HOT 2
- `FindCredentials` call on Linux without unlocking the key store crashes
- Fails to install on Windows ARM
- Node
- Farewell, my dear Keytar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-keytar.