-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Hi everyone
I’m setting up the PowerSync Electron example from the PowerSync GitHub repository.
When I run the command:
pnpm start
I get the following output:
[email protected] start C:\Users\admin\Desktop\ele-demos\powersync-js\demos\example-electron
electron-forge start --inspect-electron
Checking your system
Locating application
Loading configuration
Preparing native dependencies [0.2s]
Running generateAssets hook
Running preStart hook
The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
➜ Local: http://localhost:5173/
vite v5.4.19 building for development...
An unhandled rejection has occurred inside Forge:
Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
at getElectronPath (...)
- I have already tried the following but still get the same error:
2)Deleted node_modules and reinstalled (pnpm install)
3)Cleared the pnpm store (pnpm store prune)
4)Removed the global .pnpm-store folder
5)Tried reinstalling Electron manually
6)Verified that other Node and Vite projects work fine
System details:
Windows 10 (x64)
Node.js v22.x
pnpm v9.x
Electron Forge (from PowerSync example)
Running inside demos/example-electron
Has anyone else faced this issue or found a fix for it?
Any help or guidance would be appreciated
Thanks!
— Ankit