An Electron application with Svelte and TypeScript
# Regular install
$ pnpm install
# For detailed progress
$ pnpm install --verboseNote: Some steps (especially native module compilation) may take several minutes. The
--verboseflag will show you the detailed progress.
Common time-consuming steps:
- Native module compilation (like
better-sqlite3-multiple-ciphers) - Electron download and setup
- Post-install scripts
If you suspect the process is truly stuck (no CPU usage for >5 minutes), you can:
-
Cancel the process (Ctrl+C)
-
Clear the cache:
pnpm cache clean -
Remove existing dependencies and lock files:
# For Unix/Linux/macOS (bash) rm -rf node_modules rm pnpm-lock.yaml # For Windows (PowerShell) Remove-Item -Recurse -Force node_modules Remove-Item pnpm-lock.yaml # For Windows (CMD) rmdir /s /q node_modules del pnpm-lock.yaml
-
Try again with verbose logging:
pnpm install --verbose
$ pnpm run dev# For windows
$ pnpm run build:win
# For macOS
$ pnpm run build:mac
# For Linux
$ pnpm run build:linux