atom/node-keytar

Prebuild problem on Windows

StrangerGithuber opened this issue · 1 comments

Hello
I saw that some other people had problem on the linux part to build this keytar however I have windows. I don't know if the issue would be the same or different. If it is the same then sorry in advance.
I have an electronjs+vue project which I created with Vue-CLI. Without keytar I can build the project but if I build with keytar then I get this error:

• writing effective config file=dist\builder-effective-config.yaml
• rebuilding native dependencies dependencies=keytar@7.7.0 platform=win32 arch=x64
• install prebuilt binary name=keytar version=7.7.0 platform=win32 arch=x64 napi=
⨯ cannot find prebuild-install
⨯ cannot execute cause=fork/exec C:\Users\xxxx\AppData\Roaming\npm\pnpm-global\5\node_modules.pnpm\pnpm@6.17.1\node_modules\pnpm\bin\pnpm.cjs: %1 is not a valid Win32 application.

I am using these:

  • Keytar version: 7.7.0
  • Electron Builder version: 22.13.1
  • Node version: 14.18.1
  • Electron version: 15.1.2

I am not pro with these stuffs but testing and learning things therefore I am asking for help. I hope someone can help me with this. Thank you in advance the answers.

Ok, I just installed manually
npm i prebuild-install

and after worked everything.