This error occurs when the Vue CLI is unable to initialize a git repository for the new project because it cannot find the git executable.
To resolve this issue, make sure that Git is installed and its path is added to your system’s environment variables. You can check if Git is installed by opening a command prompt and typing “git –version”. If Git is not installed, you can download it from the official website (https://git-scm.com/downloads) and install it on your system.
If Git is already installed, try restarting your computer to ensure that any changes made to environment variables take effect. If the issue persists, you may need to add the path to Git manually. To do so:
- Open File Explorer and navigate to “This PC”.
- Right-click on “This PC” and select “Properties”.
- Click on “Advanced system settings” on the left-hand side.
- Click on the “Environment Variables” button at the bottom.
- Under “System variables”, scroll down and locate the “Path” variable.
- Click on “Edit”.
- Click on “New” and add the path to your Git installation (e.g., C:\Program Files\Git\bin).
- Click “OK” on all windows to save changes.
Once you have added Git’s path to your system’s environment variables, try creating a new Vue project again using Vue CLI.




