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

could not find commit hash for main #388

Closed
ulrgol opened this issue Nov 7, 2023 · 3 comments
Closed

could not find commit hash for main #388

ulrgol opened this issue Nov 7, 2023 · 3 comments
Assignees
Labels

Comments

@ulrgol
Copy link

ulrgol commented Nov 7, 2023

Hi, totally new to SDeverywhere and failed during install:
Which template would you like to use? » Default project
✖ Copying project files...
could not find commit hash for main
There was a problem copying the template.
Please file a new issue with the command output here: https://github.com/climateinteractive/sdeverywhere/issues

Urged to open a new issue which I hereby do.
Your help / link to a tutorial / etc. is very much appreciated.
Thanks, Ulrich

@ulrgol
Copy link
Author

ulrgol commented Nov 7, 2023

btw, using node 20.9.0 in VScode on a Win 11 Home with npm 10.1.0 and other - non SDeverywhere - node and npm stuff works
Best, Ulrich

@chrispcampbell
Copy link
Contributor

Hi @ulrgol, thanks for filing an issue.

This error is most likely to happen if you don't already have Git installed on your machine. Can you please confirm whether you have Git installed on your machine already (and on your PATH)? If not, please try installing Git and try the SDEverywhere quick start instructions (the create command) again and let me know if you have better luck.

There is some related discussion in this issue for another project that has a similar create script to the one we have in SDEverywhere:
Rich-Harris/degit#37

Some additional context... I forgot that the the degit library we use for the @sdeverywhere/create package assumes that Git is already installed on the machine. I forgot to note this in the documentation for the create package, and we should also mention it in the error message. I filed a new issue #389 to address those improvements.

@chrispcampbell chrispcampbell self-assigned this Apr 19, 2024
@chrispcampbell
Copy link
Contributor

As of v0.2.13, the @sdeverywhere/create package now works even if Git is not installed locally, so this error should no longer occur. See #464 for more details. This should reduce friction for non-technical users who are new to SDEverywhere. Closing as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants