Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bun run does nothing but echo the command

I'm currently trying to create a Tauri app using Bun in WSL. Using bun create tauri-app:

✔ Project name · test
✔ Choose which language to use for your frontend · TypeScript / JavaScript - (pnpm, yarn, npm, bun)
✔ Choose your package manager · bun
✔ Choose your UI template · Vanilla
✔ Choose your UI flavor · TypeScript

Template created! To get started run:
  cd test
  bun install
  bun run tauri dev

Following these commands, bun run tauri dev just echos tauri dev

root@DESKTOP-FOOBAR/some/path/test# bun run tauri dev
$ tauri dev
root@DESKTOP-FOOBAR/some/path/test#

Nothing actually happens. After a few seconds of waiting, it sends me back to the terminal command line input.

like image 337
oughy Avatar asked May 15 '26 15:05

oughy


1 Answers

If you want to run Tauri's frontend without npm use this command:

bunx --bun vite

And then run the rust backend part:

cd src-tauri
cargo run

I wrote on this topic a little more here at the end.

like image 159
DeveloperMindset.com Avatar answered May 17 '26 11:05

DeveloperMindset.com



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!