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

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

Closed
1 task
technologyconsulting opened this issue Oct 16, 2024 · 3 comments · Fixed by #12368
Closed
1 task

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

technologyconsulting opened this issue Oct 16, 2024 · 3 comments · Fixed by #12368
Labels
- P3: minor bug An edge case that only affects very specific usage (priority) pkg: create-astro Related to the `create-astro` package (scope)

Comments

@technologyconsulting
Copy link

technologyconsulting commented Oct 16, 2024

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

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Oct 16, 2024
@bluwy
Copy link
Member

bluwy commented Oct 16, 2024

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

@technologyconsulting
Copy link
Author

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

@bluwy
Copy link
Member

bluwy commented Oct 17, 2024

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

@bluwy bluwy added pkg: create-astro Related to the `create-astro` package (scope) - P3: minor bug An edge case that only affects very specific usage (priority) and removed needs triage Issue needs to be triaged labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P3: minor bug An edge case that only affects very specific usage (priority) pkg: create-astro Related to the `create-astro` package (scope)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants