Error when Creating a new Project from template

Hi I pulled the latest commit from the repo (Updated Also From within Bolt.diy)

I am getting this error when creating a new project from nextjs & shadcn template

i am using node v22

~/project
❯ 

~/project
❯ npm install
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/project/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/project/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2025-03-05T18_38_15_211Z-debug-0.log
jsh: spawn npm ENOENT

~/project
❯ 

~/project
❯ npm run dev
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /home/project/package.json
npm ERR! errno -2
npm ERR! enoent Could not read package.json: Error: ENOENT: no such file or directory, open '/home/project/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2025-03-05T18_38_15_817Z-debug-0.log
jsh: spawn npm ENOENT

~/project
❯ 

Hi,
you dont have any files in your project but a package-lock.json. So there is nothing to install with “npm install”.

i clicked on the new project button here. where it normally pulls the template down?

Yeah this is buggy => @thecodacus If I remember correctly you had a fix for that and you mentioned it somewhere? dont know exactly anymore :slight_smile:

not sure, it actually pulls the git repo and starts the project. but it looks like the template pull failed. can you setup the git configuration in setting and try once ?

do you mind showing me a screenshot of where that is i dont think i ever came across git repo settings in the settings before

open “settings” and “connections” then setup the github token

1 Like