Tauri Setup Guide for Windows
Step 1: Install Required Software​
1. Install Deno (JavaScript/TypeScript Runtime)​
- Website: https://deno.land/
- Steps:
- Open PowerShell
- Run the following command:
irm https://deno.land/install.ps1 | iex
2. Install Rust (Tauri Backend)​
- Website: https://www.rust-lang.org/
- Steps:
- Go to the Rust website.
- Click the "Get Started" button.
- Click the "Other Installation Methods" hyperlink
- Click on
rustup-init.exe
to get the installer. - Run the installer and follow the prompts.
- When prompted, choose "Proceed with installation".
- Restart your computer after installation.
3. Install WebView2 (Windows WebView Runtime)​
- Website: https://developer.microsoft.com/en-us/microsoft-edge/webview2/
- Steps:
- Go to the WebView2 website.
- Download the Evergreen Standalone Installer.
- Run the installer and follow the prompts.
4. Install Visual Studio Build Tools (Required for Rust)​
- Website: https://visualstudio.microsoft.com/visual-cpp-build-tools/
- Steps:
- Go to the Visual Studio Build Tools website.
- Download the installer.
- Run the installer and:
- Select "Desktop development with C++" workload.
- Click "Install".
Troubleshooting​
1. WebView2 Issues​
- Ensure WebView2 is installed by visiting https://developer.microsoft.com/en-us/microsoft-edge/webview2/.
2. Rust/Cargo Errors​
- Visit https://www.rust-lang.org/ and reinstall Rust if needed.
3. Deno Permissions​
- If Deno throws permission errors, use the
-A
flag to allow all permissions:deno run -A npm:create-tauri-app@latest
Final Notes​
- Deno Documentation: https://deno.land/manual
- Tauri Documentation: https://tauri.app/v1/guides/
- Vite Documentation: https://vitejs.dev/guide/