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 fails with 400 Bad Request #6276

Closed
1 task done
JohannesKlauss opened this issue Feb 17, 2023 · 5 comments · Fixed by #6278
Closed
1 task done

npm create astro@latest fails with 400 Bad Request #6276

JohannesKlauss opened this issue Feb 17, 2023 · 5 comments · Fixed by #6278

Comments

@JohannesKlauss
Copy link
Contributor

What version of astro are you using?

2.0.13

Are you using an SSR adapter? If so, which one?

N

What package manager are you using?

npm and yarn

What operating system are you using?

Mac

Describe the Bug

I wanted to try out astro, but cannot install it, since it always fails during the create process when trying to download https://github.com/withastro/astro/archive/latest.tar.gz

This is the cli output with npm:

npm create astro@latest ./astro-poc

╭─────╮  Houston:
│ ◠ ◡ ◠  We're glad to have you on board.
╰─────╯

 astro   v2.0.13 Launch sequence initiated.

      ◼  dir Using ./astro-poc as project directory

  tmpl   How would you like to start your new project?
         Empty
Failed to download https://github.com/withastro/astro/archive/latest.tar.gz: 400 Bad Request
npm ERR! code 1
npm ERR! path /Users/johannesklauss/Documents/Spacetime/astro-test
npm ERR! command failed
npm ERR! command sh -c -- create-astro ./astro-poc

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/johannesklauss/.npm/_logs/2023-02-17T08_43_06_383Z-debug-0.log

And with yarn it is the same. Not sure if this is related to github or astro.

Link to Minimal Reproducible Example

No reproducible applicable

Participation

  • I am willing to submit a pull request for this issue.
@julianbattye
Copy link

I'm also having this issue. Is there a simple way to bypass and get it installed such as a previous version?

@eliseomurillo9
Copy link

Same issue here and I still dont find any way to solve it, even with previous versions

@julianbattye
Copy link

It may be unrelated but I've just updated Node from 16 to 18 and it appears to be working now.

@Princesseuh
Copy link
Member

Hi everyone, sorry for the issue. We're currently investigating what's happening.

In the meantime, if you can't upgrade to Node 18 or higher, installing manually should work: https://docs.astro.build/en/install/manual/

Sorry for the inconvenience!

@Princesseuh
Copy link
Member

Hi, this seems to be caused by an issue upstream with the package we use to download the template: unjs/giget#81

We'll be reverting the version in the meantime, sorry again for the inconvenience.

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

Successfully merging a pull request may close this issue.

4 participants