Error in initiating astro after choosing a framework

Viewed 132

I'm trying to initiate astro. When i don't choose a framework i get this error although i have git installed and fully working. Any help will be highly appreciated.

√ Which frameworks would you like to use? »
> Copying project files...
could not find commit hash for latest
This seems to be an issue with degit. Please check if you have 'git' installed on your system, and install it if you don't have (https://git-scm.com).  
If you do have 'git' installed, please file a new issue here: https://github.com/withastro/astro/issues
2 Answers

It depends on your OS and environment.

For instance, withastro/astro issue 2144 reports the exact same error message, but on Windows, using Linux on WSL2 (Ubuntu 20.04.3 LTS).
Double-check your %PATH%/$PATH in your execution environment.

Not a direct solution to your error message, but a general solution for those kinds of errors:

I would recommend doing the development inside docker containers, so called devcontainers.

Since you will develop in separate and isolated environments containing only the project's minimum dependencies and tools, it is a lot less likely to face OS specific issues in general.

Here are some resources to get started:

Related