tauri/docs/get-started/setup-windows.md
Kasper 4f9c9e6307
Restructure docs (#3180)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2022-01-07 09:30:23 -03:00

3.1 KiB

title
Setup for Windows

import Alert from '@theme/Alert' import Icon from '@theme/Icon' import { Intro } from '@theme/SetupDocs'

For those using the Windows Subsystem for Linux (WSL) please refer to our Linux specific instructions instead.

1. System Dependencies 

You'll need to install Microsoft Visual Studio C++ build tools. Download the installer here, and then run it. When it asks you what packages you would like to install, select C++ Build Tools and make sure the Windows SDK is selected.

This is a big download (over 1GB) and takes the most time, so go grab a coffee. You may need to uninstall the 2017 version of the build tools if you have them. There are reports of Tauri not working with both the 2017 and 2019 versions installed.

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:

  • Yarn, is preferred by Tauri's team
  • pnpm

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. Install WebView2

WebView2 is pre-installed in Windows 11.

Finally, you will need to install WebView2. The best way to do this is to download and run the Evergreen Bootstrapper from this page.

If you have problems of any kind after following these instructions, we recommend that you reboot your computer before developing a Tauri project to ensure that everything works as expected.

Continue

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