Error on Bun run dev
I cd to the ui folder and bun run dev but I receive the following error message:
%USER%\venv\devika\ui> bun run dev $ vite error: Failed to due to error bunsh: No such file or directory:
Have you installed bun on your machine? Installation guide
@DatOneDue bun i vite , then bun run dev
Make sure you are using latest node and npm. (use NVM for node)
inside ui folder ignore errors and run: npm install then npm update --legacy-peer-deps then bun install -f
Now Start: bun run dev
👍🏼 Hope this will help.
You can use either bun or npm to run the UI.
@j3rry01v thank you so much! bun i vite worked for me!!!
This worked for me: sudo npm cache clean -f sudo npm install -g n sudo n stable
"npm run dev" worked for me
(devika) PS F:\work\Devika\Devika\ui> bun run dev $ vite dev bun: command not found: vite error: script "dev" exited with code 1
Do i need to change the package.jason? or install some bun-vite plugin?
(devika) PS F:\work\Devika\Devika\ui> bun --version 1.1.1 (devika) PS F:\work\Devika\Devika\ui>
never mind...i ran this and it worked
bun i vite
first install bun
then bun install
then bun i vite
then bun run dev
If anyone encounters this error using Windows, make sure the path you're using for you project doesn't contain rare characters, such as accent marks, and try to not use spaces when naming folders or files.
Thanks @nicohorn! What a small world 😂
Thanks @nicohorn! What a small world 😂
Jajaj de nada!
Make sure you are using latest node and npm. (use NVM for node) inside ui folder ignore errors and run:
npm installthennpm update --legacy-peer-depsthenbun install -fNow Start:
bun run dev👍🏼 Hope this will help.
thank you.