Skip to content

Prerequisites

In order to get started building your project with Tauri you’ll first need to install a few dependencies:

  1. System Dependencies
  2. Rust
  3. Configure for Mobile Targets (only required if developing for mobile)

Follow the link to get started for your respective operating system:

Tauri requires various system dependencies for development on Linux. These may be different depending on your distribution but we’ve included some popular distributions below to help you get setup.

Terminal window
sudo apt update
sudo apt install libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev

If your distribution isn’t included above then you may want to check Awesome Tauri on GitHub to see if a guide has been created.

Next: Install Rust

Tauri uses Xcode and various macOS and iOS development dependencies.

Download and install Xcode from one of the following places:

Be sure to launch Xcode after installing so that it can finish setting up.

Only developing for desktop targets? If you’re only planning to develop desktop apps and not targeting iOS then you can install Xcode Command Line Tools instead:

Terminal window
xcode-select --install

Next: Install Rust

Tauri uses the Microsoft C++ Build Tools for development as well as Microsoft Edge WebView2. These are both required for development on Windows.

Follow the steps below to install the required dependencies.

  1. Download the Microsoft C++ Build Tools installer and open it to begin installation.
  2. In the Workloads tab, select “Desktop development with C++”.
  3. Switch to the Individual components tab and verify that both of the following are checked:
    • “MSVC v143 - VS 2022 C++ x64/x86 build tools” (or the latest version available)
    • “Windows 10/11 SDK” (the latest version)
  4. Click Install or Modify to apply the changes.

Visual Studio C++ Build Tools installer screenshot

To verify that the C++ build tools are installed correctly, open the Developer Command Prompt for VS 2022 from your Start Menu.

In the Developer Command Prompt, run:

Terminal window
link.exe /?

If you see help text with Microsoft linker options, link.exe is available in your environment.

❌ “link.exe” is not recognized?

If link.exe is not recognized, make sure you are using the Developer Command Prompt for VS 2022. This shell automatically sets the environment variables needed to locate link.exe.

If you are already using the Developer Command Prompt and still see the error, repair your Visual Studio Build Tools installation:

  1. Open the Visual Studio Installer.
  2. Select “Modify” for your installation.
  3. Ensure “MSVC v143 - VS 2022 C++ x64/x86 build tools” is checked in the Individual components tab.
  4. Click Modify to reinstall.

Then run link.exe /? again to confirm.

❌ “Windows SDK not found” when building?

This error occurs when the Windows SDK is missing or wasn’t selected during installation:

  1. Open the Visual Studio Installer again.
  2. Select “Modify” for your existing installation.
  3. Go to the Individual components tab.
  4. Search for “Windows 10/11 SDK” and ensure the latest version is checked.
  5. Click Modify to install the SDK.

After installation, restart your terminal and IDE, then retry your Tauri build.

Next: Install WebView2.

Tauri uses Microsoft Edge WebView2 to render content on Windows.

Install WebView2 by visiting the WebView2 Runtime download section. Download the “Evergreen Bootstrapper” and install it.

Next: Check VBSCRIPT

Building MSI packages on Windows requires the VBSCRIPT optional feature to be enabled. This feature is enabled by default on most Windows installations, but may have been disabled on some systems.

If you encounter errors like failed to run light.exe when building MSI packages, you may need to enable the VBSCRIPT feature:

  1. Open SettingsAppsOptional featuresMore Windows features
  2. Locate VBSCRIPT in the list and ensure it’s checked
  3. Click Next and restart your computer if prompted

Note: VBSCRIPT is currently enabled by default on most Windows installations, but is being deprecated and may be disabled in future Windows versions.

Next: Install Rust

Tauri is built with Rust and requires it for development. Install Rust using one of following methods. You can view more installation methods at https://www.rust-lang.org/tools/install.

Install via rustup using the following command:

Terminal window
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

Be sure to restart your Terminal (and in some cases your system) for the changes to take effect.

Next: Configure for Mobile Targets if you’d like to build for Android and iOS, or, if you’d like to use a JavaScript framework, install Node. Otherwise Create a Project.

  1. Go to the Node.js website, download the Long Term Support (LTS) version and install it.
  2. Check if Node was successfully installed by running:
Terminal window
node -v
# v20.10.0
npm -v
# 10.2.3

It’s important to restart your Terminal to ensure it recognizes the new installation. In some cases, you might need to restart your computer.

While npm is the default package manager for Node.js, you can also use others like pnpm or yarn. To enable these, run corepack enable in your Terminal. This step is optional and only needed if you prefer using a package manager other than npm.

Next: Configure for Mobile Targets or Create a project.

If you’d like to target your app for Android or iOS then there are a few additional dependencies that you need to install:

  1. Download and install Android Studio from the Android Developers website
  2. Set the JAVA_HOME environment variable:
Terminal window
export JAVA_HOME=/opt/android-studio/jbr
  1. Use the SDK Manager in Android Studio to install the following:
  • Android SDK Platform
  • Android SDK Platform-Tools
  • NDK (Side by side)
  • Android SDK Build-Tools
  • Android SDK Command-line Tools

Selecting “Show Package Details” in the SDK Manager enables the installation of older package versions. Only install older versions if necessary, as they may introduce compatibility issues or security risks.

  1. Set ANDROID_HOME and NDK_HOME environment variables.
Terminal window
export ANDROID_HOME="$HOME/Android/Sdk"
export NDK_HOME="$ANDROID_HOME/ndk/$(ls -1 $ANDROID_HOME/ndk)"
  1. Add the Android targets with rustup:
Terminal window
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android

Next: Setup for iOS or Create a project.

  1. Add the iOS targets with rustup in Terminal:
Terminal window
rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
  1. Install Homebrew:
Terminal window
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install Cocoapods using Homebrew:
Terminal window
brew install cocoapods

Next: Create a project.

If you run into any issues during installation be sure to check the Troubleshooting Guide or reach out on the Tauri Discord.


© 2026 Tauri Contributors. CC-BY / MIT