Fix 'vite command not found


@leex279 i did : you need to update and use the main branch - go to your bolt.diy folder - open a terminal there - do the following commands: – git checkout main – git pull – pnpm install – pnpm run dev
and thats what i have now

Hey, good :slight_smile:

But thats just a problem of the app created by bolt.diy, not with bolt itself.
So this is working just fine and your problem was (youtube) that you dont see netlify, which you do now, right?

Vite Error:
Just do a prompt to fix it. Copy the error from the terminal and just paste it as prompt.

Which Model do you use?

1 Like

yup now i got the bolt.diy updated and pnpm it was 9
what model?
and I think the problem with vite install


what you have chosen here?
Thats Provider and Model.

the vite problem is just a problem of your app you build with bolt.diy. So just write a prompt that the AI fixes it.

You can see this in a lot of my videos as well, when errors occur. I paste the error as prompt and let it fix.

1 Like

لقطة الشاشة 2025-02-26 142941


this what i get when i do anything and ya I saw your videos and i do paste the error as prompt and let it fix.


I couldn’t remove pnpm v9
-+and do u know how to updat pnpm v in bolt.diy cuz i tried everything ik

The Starter Template Error => Go to Settings => Connection and add a Github-Connection. Then try again.

the PNPM version is no problem, but I also see a error in your provided screenshots.

1 Like

i do have Github-Connection and i will do it again btw i did pnpm up and still in 9v

ignore the pnpm version for now. this doest matter. works with 9 as well.

The error in the screenshot looks like a problem with your connection. Do you maybe hava a Firewall or Anti-Virus in place, which is blocking something?

You can test this:

ping registry.npmjs.org

if it fails, your pc does not allow a connection to the npm repository, which is not a bolt.diy problem.


and no before it was working fine

and this what i get too (~/project
❯ npm run dev

todo-app@0.0.0 dev
vite
jsh: command not found: vite)

and also failed to start action

I dont understand your setup at the moment. You got a error while installing “pnpm install”, but I can see a running bolt.diy on your last screenshot. It cannot run without installing dependencies?

Did you try to just start from scratch and clone + install again?

1 Like

ya i did that i wanted the pnpm v9 up to 10v and uninstall node and did everything from the start but still get in bolt.diy pnpm v9

this what i get now ~/project
❯ npm run dev
npm ERR! code EJSONPARSE
npm ERR! JSON.parse Invalid package.json: m: Unexpected token ‘<’, "<![CDATA[
npm ERR! JSON.parse "… is not valid JSON while parsing ‘<![CDATA[
npm ERR! JSON.parse {
npm ERR! JSON.parse “name”: "bolt-diy-landing-’
npm ERR! JSON.parse Failed to parse JSON data.
npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.
npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2025-02-26T15_09_23_412Z-debug-0.log

wait, thats wrong, why you use NPM instead of PNPM to run?
(also install needs to be done with “pnpm install”)

Or is this now your app and not bolt.diy? I am confused because you mix 2 things up here :slight_smile: