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

degit fails installing #18

Open
rhildred opened this issue Jul 29, 2023 · 1 comment
Open

degit fails installing #18

rhildred opened this issue Jul 29, 2023 · 1 comment

Comments

@rhildred
Copy link

Need to install the following packages:
[email protected]
Ok to proceed? (y) y
! could not fetch remote https://github.com/chromaui/intro-storybook-react-template
! could not find commit hash for HEAD

I got it to work with

npx git-pwa clone --branch master https://github.com/chromaui/intro-storybook-react-template .

for this reason I theorize that the default branch is wrong????

@jonniebigodes
Copy link
Collaborator

@rhildred thanks for taking the time and reach out to us with your issue. Appreciate it 🙏 !
To answer your question, no, the default branch was left as master to avoid situations like this, as the degit package defaults to the master branch. I've encountered a similar issue as you're mentioning randomly, and rerunning the command usually solved it and was able to grab the template.

One thing to consider, though, is probably some local configuration you have on your environment or something related that's introducing the issue or something wrong with the package.

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

2 participants