tauri: [bug] failed to get project out directory: failed to get cargo metadata: program not found error Command failed with exit code 1.
Describe the bug
Tauri project created with package manager: yarn and UI template: react-ts
I already installed all the requirements.
This is what I see in my terminal when I try to run the command yarn tauri dev to start the project.

Reproduction
- Generate project using
create tauri-app - Choose
yarn package manager - Use
react-tsUI template - Run using
yarn tauri dev
Expected behavior
No response
Platform and versions
yarn: 1.22.17
Stack trace
No response
Additional context
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 20 (6 by maintainers)
Just install Rust, follow on https://tauri.app/v1/guides/getting-started/prerequisites
If there is any other first-timers (like me) getting stuck on this issue, I skipped over the line “Note that you have to restart your terminal, and in some cases, Windows itself, for the changes to take effect.”
Stupid, I know, don’t be like me.
Ahh i see, you’re totally right! thank you!
@FabianLars Ahh I see. Let me explain how I missed it:
yarn create tauri-appto create an appIt would be great if it could be added to that page!
@serg06 All quick start guides have a note at the top:
And create-tauri-app also prints a warning after running it:
Where else could we add a warning, or how should the existing ones look like to avoid this confusion? Feedback is always much appreciated 🙏
I just followed the QuickStart guide, it didn’t say anything about prerequisites.
It should link to the prerequisites page.
An important note for MacOS users. You probably have to restart or log out before rust installation will take effect. That was the case for me on Mojave 10.14.6.
This is the repository link. I didn’t change anything after the project was created. It’s my first time using tauri, so I don’t know anything, I just installed the requirements