node.jsnpmrusttauri

When I install and run Tauri on Mac OS Monterey I get immediate error


I installed it via:

npm create tauri-app

I chose a vanilla JavaScript environment to code it.

I run:

  cd app
  npm install
  npm run tauri dev

The result is this error:

> [email protected] tauri
> tauri dev

thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/interface/rust.rs:762:69
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I am on Mac OS Monterey.

I searched the error online and it seems it might have something to do with my systems time configuration but I am unsure.


Solution

  • You need to install Rust before Tauri. Installing Tauri does not include Rust.

    Installation instructions, according to Rust's documentation:

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