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

🐛 BUG: npm init astro fails - "could not find commit hash for HEAD" #746

Closed
tomasmendes01 opened this issue Jul 19, 2021 · 5 comments
Closed

Comments

@tomasmendes01
Copy link

What package manager are you using?

npm

What operating system are you using?

Windows

Describe the Bug

could not find commit hash for HEAD
npm ERR! code 1
npm ERR! path C:\laragon\www\Portfolio
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-astro

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Admin\AppData\Local\npm-cache_logs\2021-07-19T00_34_19_517Z-debug.log

Steps to Reproduce

  1. npm init astro
  2. Select anything (in my case i'm selecting Portfolio but i've already tested all the remaining options)
  3. Error after > Copying project files...!

Link to Minimal Reproducible Example (Optional)

No response

@chuygil
Copy link
Contributor

chuygil commented Jul 19, 2021

do you have git installed?

@jasikpark
Copy link
Contributor

If I'm not wrong, degit shouldn't require git, no?

@chuygil
Copy link
Contributor

chuygil commented Jul 19, 2021

It is my understanding that it does. I could be wrong, was reading through this issue

@jasikpark
Copy link
Contributor

Wack. I honestly would have thought there was something like libgit2 but for JS

@FredKSchott
Copy link
Member

I think it uses the Github API and not git. In either case, this is out of scope for us and a problem in degit (that may be related to your machine). Sorry about that! In that case, you can clone (or download as a tarball) the example yourself from Github.

xstevenyung pushed a commit to xstevenyung/astro that referenced this issue Oct 17, 2023
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

4 participants