Error: Bun could not find a package.json file to install from

I’m trying to deploy my file from vercel to github. But I keep receiving this error: Bun could not find a package.json file to install from.

This is my first time using vercel and github and have no idea what i’m doing and how to edit any of the code to update any content or add images.

Any guidance would be greatly appreciated.

Hi @brnsn, welcome to the Vercel Community!

I understand you’re doing it for the first time. Let’s start small:

  • Can you share the link to your public repository?
  • How did you set up the project locally?
  • How do you run the project? What commands and environment you use locally?
  • What is the project about?

I recommend you to read through our How to Get Good Answers guide and add more details to your post.

Hi Anshuman,

Thank you. Public repository: GitHub - brnsnn/portfolio: Bronson Lee, UX Portfolio

so far, I have vercel linked with my github. I created the prompts for a portfolio website and it’s been deployed. But somehow it’s only recently that has had an error.

I updated my code file and pushed changes to git but it still says error.

Hi @brnsn, thanks for sharing the repository. I see your project is inside the ux-portfolio folder. So, in your Vercel project settings you have to set the root directory to ux-portfolio.