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. image

Reproduction

  1. Generate project using create tauri-app
  2. Choose yarn package manager
  3. Use react-ts UI template
  4. 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)

Most upvoted comments

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:

  • I clicked QuickStart on the left sidebar and it brought me here – there is no mention of prerequisites
  • I followed the instructions and ran yarn create tauri-app to create an app
  • I tried to run the app and ran into this error

It would be great if it could be added to that page!

@serg06 All quick start guides have a note at the top: grafik

And create-tauri-app also prints a warning after running it: grafik

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