Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bolt.new unable to get past 'npm install && npm start' setups #176

Closed
magusonline opened this issue Oct 7, 2024 · 100 comments
Closed

Bolt.new unable to get past 'npm install && npm start' setups #176

magusonline opened this issue Oct 7, 2024 · 100 comments

Comments

@magusonline
Copy link

magusonline commented Oct 7, 2024

Describe the bug

There seems to be issues with Bolt.new setting up dependencies of any kind. They offer "fixes" which essentially loop into various recursion loops of the same problem to "fix" without actually fixing anything.

Link to the Bolt URL that caused the error

https://bolt.new/~/sb1-nwbhho

Steps to reproduce

  1. Click 'fix'
  2. Wait for resolution
  3. Click new 'fix'
  4. Wait for resolution
  5. Click new new 'fix'
  6. Wait for resolution
  7. Click new new new 'fix' (it's actually 3's issue repeated)
  8. Wait for resolution
  9. Click on new new new 'fix' (it's actually 1's issue repeated)

Expected behavior

It should install the dependencies instead of going down an infinite loop.

Screen Recording / Screenshot

No response

Platform

Windows 10
Firefox 131.0

Additional context

No response

@kirjavascript
Copy link
Member

Hi! Thanks for reporting this issue!

We're tracking this issue internally and will let you know when we have a resolution.

@plyght
Copy link

plyght commented Oct 31, 2024

Hi! Thanks for reporting this issue!

We're tracking this issue internally and will let you know when we have a resolution.

@kirjavascript any updates on this?

@kirjavascript
Copy link
Member

We've been trying to improve on this in the background but due to the nature of the problem it's quite difficult to diagnose.

Could you try again from a fresh project, and let us know the prompts you used to get there?

@plyght
Copy link

plyght commented Nov 1, 2024

We've been trying to improve on this in the background but due to the nature of the problem it's quite difficult to diagnose.

Could you try again from a fresh project, and let us know the prompts you used to get there?

@kirjavascript I have tried multiple projects; it mostly only happens when I ask for a portfolio site. It gets stuck right about when it tries to install idealtree builddeps. I think a good solution is to use https://bun.sh/ instead of npm, as it's abhorrently slow.

https://bolt.new/~/sb1-gvnckk
image

@plyght
Copy link

plyght commented Nov 7, 2024

@kirjavascript any updates?

@juancadile
Copy link

I have the same issue. The error says that it's using "https" for some request but only "http" is allowed.

@SuperGooey
Copy link

SuperGooey commented Nov 8, 2024

Same issue here; nothing I make gets past npm install and npm run dev. It tells me:
npm ERR! code ERR_INVALID_PROTOCOL npm ERR! Protocol "https:" not supported. Expected "http:" npm ERR! A complete log of this run can be found in: /home/.npm/_logs/...

And for npm run dev, I get:
`

[email protected] dev
vite
jsh: command not found: vite
`

@fambrosoli1
Copy link

same here

1 similar comment
@flosrn
Copy link

flosrn commented Nov 12, 2024

same here

@plyght
Copy link

plyght commented Nov 12, 2024

@kirjavascript any updates?

@kirjavascript this seems like a prevalent issue that needs fixing. just following up!

@kirjavascript
Copy link
Member

There was an issue that appeared where npm install was not being run. We've since pushed out an update that improved on this, but there still appear to be issues.

Someone has been assigned to work on this, I will add a message here when we have an update on it!

@kirjavascript
Copy link
Member

actually, we just landed some improvements for fixing problems: https://x.com/stackblitz/status/1856399662351303017

maybe you could give it a whirl and let me know how it goes?

@Lifexcel
Copy link

I am experiencing the same issue: an error occurs when I run npm run dev.

@egebese
Copy link

egebese commented Nov 13, 2024

It's impossible to run something. Npm install & run dev basically not working. Live preview in every project is empty blank screen. Spent 1M token for nothing.

CleanShot 2024-11-13 at 23 20 32@2x

@jsscotty
Copy link

My app worked fine but now also encounting this issue

@chrisdeweese
Copy link

The only work-around I found for this issue at least for NextJS Vite projects is to delete the package-lock.json file, then manually run "npm install" and "npm run dev" in the terminal. Install takes forever, upwards of 15 minutes sometimes, but this fix consistently works, tested on multiple projects.

@FredFredericks
Copy link

I am having the same issue and is taking a lot of tokens to fix :'D. Any updates?

@plyght
Copy link

plyght commented Nov 16, 2024

actually, we just landed some improvements for fixing problems: https://x.com/stackblitz/status/1856399662351303017

maybe you could give it a whirl and let me know how it goes?

@kirjavascript This update hasn't seemed to help me, nor others. Is there anything more we can do to resolve this?

@jwillz7667
Copy link

dude I want my money back from the subscription I purchased. if your product doesn't work yet you can't charge people for it

@rassu
Copy link

rassu commented Nov 18, 2024

Any update? Stuck here?

@plyght
Copy link

plyght commented Nov 18, 2024

dude I want my money back from the subscription I purchased. if your product doesn't work yet you can't charge people for it

@kirjavascript It seems that this issue is affecting many, including paid, users. This is a major issue that needs resolving. How can we get this fixed?

@ronaold
Copy link

ronaold commented Nov 18, 2024

The only work-around I found for this issue at least for NextJS Vite projects is to delete the package-lock.json file, then manually run "npm install" and "npm run dev" in the terminal. Install takes forever, upwards of 15 minutes sometimes, but this fix consistently works, tested on multiple projects.

this doesnt work

@wtdavenport
Copy link

wtdavenport commented Nov 18, 2024

I was excited to try Bolt and signed up for it today. Running into the same problem with my first project. I tried running nom install in terminal per the above sugggestion (after deleting package-lock.json) but terminal returned errors about "resolving the dependency tree".

Edit: I had another issue as well where the Preview was totally blank (just a white screen). In troubleshooting that Bold asked me to use Chrome or Firefox (I was using Safari) an in using Chrome today (11/19/2024) the project built properly with Preview functionality.

@hlu38
Copy link

hlu38 commented Nov 19, 2024

Pareil , j'ai pris la solution payante et voici le resultat:

La commande a échoué
npm install

La commande a échoué
npm run stackblitz

@hlu38
Copy link

hlu38 commented Nov 19, 2024

Si il y a pas de support je vais résilier pour partir sur la solution open source.

@mhspadez
Copy link

mhspadez commented Dec 6, 2024

Same issue here, I submitted a ticket to just see if I could at least get some credits back at least, although a fix would be great, and maybe try some of the fixes people have mentioned on this thread --- but no response yet, we'll see.... Is there a way we can run the install manually some how? Or upload the dependency files?

@Tarik37
Copy link

Tarik37 commented Dec 12, 2024

Farwell!!

@plyght
Copy link

plyght commented Dec 13, 2024

Farwell!!

Yeah, I've switched to v0, and it's been wonderfully smooth and high quality. So much better than Bolt

@23Antron23
Copy link

Hello, anyone out there... we seemingly cant get past this error.. any devs watching?? what is the resolution esp for paying subscribers!..

@magusonline
Copy link
Author

Hello, anyone out there... we seemingly cant get past this error.. any devs watching?? what is the resolution esp for paying subscribers!..

The solution at the moment is to vote with your wallet. Aka unsubscribe, at least that's what I've done. Just using up the remaining credits on other small things and side projects.

The developers were extremely quick to close this issue within 24 hours and said that they will have a solution. But they didn't, their "switch browsers" one yielded nothing

@23Antron23
Copy link

Hmm had high hopes following youtube video.. alas have you found any other similar sites offering AI build-to-release platforms worthy of note?

@magusonline
Copy link
Author

Hmm had high hopes following youtube video.. alas have you found any other similar sites offering AI build-to-release platforms worthy of note?

I suppose it depends on how much backend programming you're familiar with. Since you'll still need to know how to implement auth0 and any other hooks to supbase if you're trying to monetize.

You could try

https://lovable.dev/

Or download Windsurf AI or try v0.dev (same thing as this but came before)

@dmenchaca
Copy link

Npm install still failing.

Screenshot 2024-12-18 at 17 40 14

@i5hi
Copy link

i5hi commented Dec 20, 2024

i get the same issue when create a Vue site. vite build fails because its not being installed globally.

@gxmech
Copy link

gxmech commented Dec 27, 2024

Bolt is not ready for prime time. Keep looking, new AI Agents appearing everyday!

@vikas-bluboy
Copy link

without any resolution, how can the ticket get closed??

@mmad2021
Copy link

just wasted almost 1mn tokens due to this issue

@frexe1
Copy link

frexe1 commented Dec 30, 2024

jsh: command not found: setup-nativescript-stackblitz

image

@gabe-almeida
Copy link

This bug is so insanely annoying.

@pchretien
Copy link

The only work-around I found for this issue at least for NextJS Vite projects is to delete the package-lock.json file, then manually run "npm install" and "npm run dev" in the terminal. Install takes forever, upwards of 15 minutes sometimes, but this fix consistently works, tested on multiple projects.

@chrisdeweese thanks for the tip ... I tried only deleting the package lock file and asked Bolt to fix the issues once more and it worked in a couple seconds.

@K155MY4R53
Copy link

I too am running into this issue.

@digimarktech
Copy link

Same issue still exists today

@Boston343
Copy link

The only work-around I found for this issue at least for NextJS Vite projects is to delete the package-lock.json file, then manually run "npm install" and "npm run dev" in the terminal. Install takes forever, upwards of 15 minutes sometimes, but this fix consistently works, tested on multiple projects.

Thank you! This worked for me with an Astro project I'm working on. Although it was super quick doing the npm install again after deleting the lock file.

@protomota
Copy link

protomota commented Jan 12, 2025

This bug is not closed. Still happens today consistently on multiple projects.

@harleyfr
Copy link

Wasted tonnes of credits on this, can't finish my project til issue resolved.
Please re-open this issue

@pchretien
Copy link

More context ... in my case, when providing a long prompt at creation I get conflicts in the npm packages resulting in an error at npm install. I am using Angular. As an example, starting an Angular project with Firebase User management fails every time.

Option #1: Start a project with a small prompt with only the framework and a general idea of the project. Then add Firebase User Management and Database. Works every time.

Option #2: Ask Claude 3.5 to fix the packages dependencies for me. Make sure to ask bolt to do what Claude suggest or it will be lost the next time Bolt change the package.json file.

I understand these are not ideal solutions but it saved me a ton of tokens.

@ANGio32
Copy link

ANGio32 commented Jan 15, 2025

Use chrome

@plyght
Copy link

plyght commented Jan 15, 2025

@ANGio32 That is not a valid solution to this issue. We should be able to use whatever browser we choose, and not waste thousands of credits/money on not knowing about this error.

@PassionRose
Copy link

this issue is still there and i cant push my project to deploy

Image

@magranero
Copy link

I solved this similar problems:

Ask Bolt:

"Tell me what framework / template are this project built in"
BLABLA
"OK, then, check .built folder and config.json file and check if values of the template are ok with BLABLA framework.

Solved!

@kevin-flynnn
Copy link

guys, bolt cant solve "npm install", i just manually test install package in local, then replace to bolt and it work !

@yebenesjose
Copy link

Image

Image

for astro projects its getting stuck in the initial npm instal setup too.

@Lifexcel
Copy link

Lifexcel commented Feb 26, 2025 via email

@Gems
Copy link

Gems commented Mar 3, 2025

Switch from Safari to another browser helped! Guys, read the message buried in the hidden part of this thread.

@nostalgicbear
Copy link

Same issue persists. Happening on all projects for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests