Bun/Deno Support
Currently I can't make an Electron Forge app with bun. Says on the docs that only NPM and Yarn Classic are supported. Are there any thoughts about supporting Deno or Bun?
Electron Forge doesn't currently support Bun as a package manager - you're right that the official documentation only lists NPM and Yarn Classic as supported options. As of my knowledge, there weren't any official announcements about adding Bun or Deno support to Electron Forge. This limitation exists because Electron Forge has specific integrations with those package managers' behaviors and command structures. If you want to use Bun with Electron, you might have this one option:
- Create a standard Electron app manually without Forge
- Use NPM/Yarn for the initial setup with Forge and then try to migrate to Bun
- Check for community-created forks or plugins that might have added unofficial support
Try this might this also cause issue, like I tried mapping NPM to bun but it didn't work. You can try this once. For now this is only the option. Because Bun or Deno not officially support to Electron Forge.
#221
Hey, I'm trying to work on this issue
#221
Electron Forge support for Bun/Deno Support #221
Fixes in packages for both npm and bun
pnpm isn't working
For npm, use these commands:
npx create-electron-app@latest my-svelte-app --template=vite
cd my-svelte-app
npm install svelte
npm install --save-dev @vitejs/plugin-svelte
For bun, use these commands:
bunx create-electron-app@latest my-svelte-app --template=vite
cd my- svelte-app
bun install svelte
bun install --save-dev @vitejs/plugin-svelte