Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Error: "Could not find commit hash for master" #37
Hey there—I'm trying to get started with Svelte and running:
... gives me:
Double checking that the
Well derp, I was trying to run this on a new Macbook Pro that I hadn't installed Xcode or the Command Line Tools on, so
It may be pertinent in the rare cases when people don't have
This error manifests itself in Travis CI too. Trying to use
I think we can close this issue, because I don't think anymore that it would be the case to adapt degit to don't depend on git, because it's exactly what gittar does.
We can live with both libraries, each one with its pros and cons.
Degit has more features, but requires git. Gittar is more simple, but doesn't requires git. Each developer chooses the one it sees fit.
If you're seeing the following error(s):
! could not find commit hash for rollup`
`$ npx degit https://github.com/sveltejs/sapper-template#webpack my-app
! could not find commit hash for webpack`
It's because git isn't working. git depends on xcode and xcode requires you to accept it's license agreement.
Try running "git" and if you see the following message:
Also if you haven't installed degit you may need to do the following:
I have the same error with sveltejs/template.
Doc said to just run
I use git everyday without any problems.
@vguhesan That doesn't apply.
Everything is on the comment, I have git, node, npm, degit all installed.
The issue seems to be on degit itself.
@paulocoghi Where do I use that?
I tried running with this flag, but the result was the same: