Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 1.51 KB

File metadata and controls

68 lines (46 loc) · 1.51 KB

my-app

An Electron application with Svelte and TypeScript

Recommended IDE Setup

Project Setup

Install

# Regular install
$ pnpm install

# For detailed progress
$ pnpm install --verbose

Note: Some steps (especially native module compilation) may take several minutes. The --verbose flag 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:

  1. Cancel the process (Ctrl+C)

  2. Clear the cache: pnpm cache clean

  3. 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
  4. Try again with verbose logging: pnpm install --verbose

Development

$ pnpm run dev

Build

# For windows
$ pnpm run build:win

# For macOS
$ pnpm run build:mac

# For Linux
$ pnpm run build:linux