Package Details: alpaca-electron-bin 1.0.5-9

Git Clone URL: https://aur.archlinux.org/alpaca-electron-bin.git (read-only, click to copy)
Package Base: alpaca-electron-bin
Description: The simplest way to run Alpaca (and other LLaMA-based local LLMs) on your own computer
Upstream URL: https://github.com/ItsPi3141/alpaca-electron
Keywords: ai alpaca alpaca-electron app chat chatgpt dalai docker electron electron-app llama ui webui
Licenses: MIT
Conflicts: alpaca-electron
Provides: alpaca-electron
Submitter: zxp19821005
Maintainer: zxp19821005
Last Packager: zxp19821005
Votes: 0
Popularity: 0.000000
First Submitted: 2023-05-10 03:35 (UTC)
Last Updated: 2024-05-29 08:49 (UTC)

Latest Comments

zxp19821005 commented on 2023-09-11 01:11 (UTC) (edited on 2023-09-11 01:11 (UTC) by zxp19821005)

@MarsSeed When I used electron >13, I got a lots errors:

$ electron14 pkg/alpaca-electron-bin/opt/alpaca-electron/alpaca-electron.asar
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /home/zxp-endeavouros/.cache/paru/clone/alpaca-electron-bin/pkg/alpaca-electron-bin/opt/alpaca-electron/alpaca-electron.asar/node_modules/node-pty-prebuilt-multiarch/lib/prebuild-loader.js
- /home/zxp-endeavouros/.cache/paru/clone/alpaca-electron-bin/pkg/alpaca-electron-bin/opt/alpaca-electron/alpaca-electron.asar/node_modules/node-pty-prebuilt-multiarch/lib/unixTerminal.js
- /home/zxp-endeavouros/.cache/paru/clone/alpaca-electron-bin/pkg/alpaca-electron-bin/opt/alpaca-electron/alpaca-electron.asar/node_modules/node-pty-prebuilt-multiarch/lib/index.js
- /home/zxp-endeavouros/.cache/paru/clone/alpaca-electron-bin/pkg/alpaca-electron-bin/opt/alpaca-electron/alpaca-electron.asar/index.js
- /usr/lib/electron14/resources/default_app.asar/main.js
- 
    at Module._resolveFilename (internal/modules/cjs/loader.js:892:15)
    at Function.n._resolveFilename (electron/js2c/browser_init.js:245:1128)
    at Module._load (internal/modules/cjs/loader.js:737:27)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:964:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/zxp-endeavouros/.cache/paru/clone/alpaca-electron-bin/pkg/alpaca-electron-bin/opt/alpaca-electron/alpaca-electron.asar/node_modules/node-pty-prebuilt-multiarch/lib/prebuild-loader.js:10:15)
    at Module._compile (internal/modules/cjs/loader.js:1083:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1113:10)
    at Module.load (internal/modules/cjs/loader.js:940:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/zxp-endeavouros/.cache/paru/clone/alpaca-electron-bin/pkg/alpaca-electron-bin/opt/alpaca-electron/alpaca-electron.asar/node_modules/node-pty-prebuilt-multiarch/lib/prebuild-loader.js',
    '/home/zxp-endeavouros/.cache/paru/clone/alpaca-electron-bin/pkg/alpaca-electron-bin/opt/alpaca-electron/alpaca-electron.asar/node_modules/node-pty-prebuilt-multiarch/lib/unixTerminal.js',
    '/home/zxp-endeavouros/.cache/paru/clone/alpaca-electron-bin/pkg/alpaca-electron-bin/opt/alpaca-electron/alpaca-electron.asar/node_modules/node-pty-prebuilt-multiarch/lib/index.js',
    '/home/zxp-endeavouros/.cache/paru/clone/alpaca-electron-bin/pkg/alpaca-electron-bin/opt/alpaca-electron/alpaca-electron.asar/index.js',
    '/usr/lib/electron14/resources/default_app.asar/main.js',
    undefined
  ]
}
App threw an error during load
Error: The module '/tmp/.org.chromium.Chromium.Vvf9Zf'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 89. This version of Node.js requires
NODE_MODULE_VERSION 97. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1143:18)
    at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2073)
    at Module.load (internal/modules/cjs/loader.js:940:32)
    at Module._load (internal/modules/cjs/loader.js:781:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
    at Module.require (internal/modules/cjs/loader.js:964:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/zxp-endeavouros/.cache/paru/clone/alpaca-electron-bin/pkg/alpaca-electron-bin/opt/alpaca-electron/alpaca-electron.asar/node_modules/node-pty-prebuilt-multiarch/lib/prebuild-loader.js:6:11)
    at Module._compile (internal/modules/cjs/loader.js:1083:30)

So I think electron13 is the best choice.

MarsSeed commented on 2023-09-11 00:50 (UTC)

Thank you. Also, could you try thks with a newer Electron?

Upstream's package.json only defines "Electron 13 or newer". So this should work with one of the Electron packages from repo (electron22 and up).

MarsSeed commented on 2023-07-05 01:38 (UTC)

Please remove the bundled Electron runtime and use an electron package from Arch repo.