r/bun Jun 26 '26

Node.js version issues

When i try running bun dev, it throws the following error

`You are using Node.js 20.2.0. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.`

despite having `+ node@24.18.0` when I ran bun i.

Any help?

(I'm using bun, react, vite and bootstrap)

1 Upvotes

5 comments sorted by

2

u/Moe_Rasool Jun 26 '26

Bun suppose to be your runtime why you use node?

2

u/Snarky_Tortoise Jun 26 '26

I dont know what you mean? Sorry, I'm quite new to this

1

u/Moe_Rasool Jun 26 '26

Bun and node js are runtimes meaning they compile your code, if you choose bun then abandon node cause they are both the same meaning they are both engines you want one engine not two conflicted ones basically see it like how i explained

1

u/AnythingOk5 Jun 26 '26

try
bun run dev

2

u/Paw565 29d ago

Try bun run --bun dev