Setup for Windows

This setup is only needed for development. Consumers of Tauri apps will not have to do any of this.

This page provides a complete guide to install Tauri along with its dependencies. Because Tauri is a polyglot toolchain and involves complex installation instructions, we want to make sure anybody will manage to set it up by reading this guide without having to open another documentation.

Additionally, it contains nice tips and tools that will help you if you're beginning with Node.js or Rust and security.

: This step is required
: This step is skippable if already satisfied (e.g. you already have Node.js/Rust installed)
: This step is purely informational

1. System Dependencies 

First you should download and install Visual Studio MSBuild Tools and C++ build tools.

2. Node.js Runtime and Package Manager 

Node.js (npm included)

We recommend using nvm-windows to manage your Node.js runtime. It allows you to easily switch versions and update Node.js.

Then run the following from an Administrative PowerShell and press Y when prompted:

# BE SURE YOU ARE IN AN ADMINISTRATIVE PowerShell!
nvm install latest
nvm use {{latest}} # Replace with your latest downloaded version

This will install the most recent version of Node.js with npm.

Optional Node.js Package Manager

You may want to use an alternative to npm:

3. Rustc and Cargo Package Manager 

Now you will need to install Rust. The easiest way to do this is to use rustup, the official installer.

Download and install the proper variant for your computer's architecture.

4. Enable Loopback 

Microsoft disables the loopback interface - you need to allow it if you intend to use the dev-server:

Open an administrative console and enter:

CheckNetIsolation.exe LoopbackExempt -a -n="Microsoft.Win32WebViewHost_cw5n1h2txyewy"

5. Tauri Bundler 

If you already had rustup installed before following this guide, make sure that you update Rust:

rustup update stable

After you have installed Rust and other required dependencies, it is wise to restart your terminal before continuing.

Install Tauri bundler through Cargo:

cargo install tauri-bundler --force

6. Devtools 

If you want to debug the front-end you will have to download Microsoft Edge Devtools from the Microsoft store.

This will allow you to attach to a running instance of your Tauri project! If you need help take a look at the devtools-guide.

Continue

Now that you have set up the Windows-specific dependencies for Tauri, learn how to add Tauri to your project.