Running bolt.diy on MacOS

Hi,
I just cloned the repository on my Mac (Sequoia 15.1) and went through all the installation (or running) steps.
When I try to run it (pnpm run dev) I got an error:

Error: package.json not found

Added some debug code, and it showed that package.json is in vite:dev subdirectory:

Error: package.json not found at:.../ bolt.diy/bolt.diy/vite:dev/package.json at PackageJson.load 

I reinstalled modules, pulled origin, started from the beginning, nothing helped.
Any ideas on how to push it forward?

Arek

Hi,

are you in the correct folder where you run npm run dev?
When cloning the git, you need then cd bolt.diy and run it there

Please post some screenshots. Easier to identify problems.

Yep, I am in bolt.diy folder. Screenshot attached.

1 Like

Thanks,
can you please check your nodejs and npm version?

node v23.5.0
npm 10.9.2

thanks, I did not test version 23.x, but I know its running with 22.x

if you dont mind, can test with this please. Otherwise I need to test it out later with 23 and see if it is working for me.

node 22.13.0, the same error :confused:

I have it up and running. After downgrading the node and starting from the clean repo clone, it worked.
Thanks!
I will be active and post the next issues when they come :wink:

1 Like

Nice, then I think there is a problem with the newest NodeJS Version.

FYI @thecodacus

2 Likes

FYI - Just published a video for macOS installation now, as there were more topics / qustions / problems on it. Hope it helps some others, finding this post :slight_smile:

1 Like

might needs to add that to readme

1 Like

@Miliardi which version of nodejs you are running?

I use Node 22.12.0

Local version of Bolt.new from GitHub downloaded at the same time as Bolt.diy starts ok

Ok, I am not a Mac user but for other which similar problems, it helped when they used NPM instead of PNPM to install and run.
Make sure you try this with a clean new git clone and not with the existing.

I’m facing the same issue, Kindly help me in this. I installed and followed all the instructions shown in the video for my MacOS. I used the pnpm and npm run dev command to install and run but it didn’t worked.

As far as I see you did not clean up before switching from PNPM to NPM. You need to remove the node_modules folder first or best just clone new from git, so you got a clean state and then start with npm install and npm run dev