withastro / astro

The web framework for content-driven websites. ⭐️ Star to support our work!
https://astro.build
Other
46.34k stars 2.45k forks source link

npm create astro@latest doesn't work. Get sh: 1: astro: not found #12241

Open technologyconsulting opened 5 days ago

technologyconsulting commented 5 days ago

Astro Info

astro info

Astro                    v4.16.3
Node                     v22.5.1
System                   Linux (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

After npm create astro@latest i'm told to run npm run dev. This in tern returns sh: 1: astro: not found. To FIX, I need to run npm install astro?

What's the expected result?

For the webserver to start in dev mode.

Link to Minimal Reproducible Example

https://I-cant-reproduce-this-using-astro.new

Participation

bluwy commented 5 days ago

Did you install dependencies during the step where it asks if you want to install dependencies?

technologyconsulting commented 5 days ago

I did yes. Admittedly, I've only attempted the installation twice but it has happened both times.

bluwy commented 4 days ago

I think I know where the problem is. There's likely an error installing dependencies but it wasn't reported. I'll check against https://github.com/tinylibs/tinyexec/issues/39 first, and if not we have to tweak the behaviour ourselves.