#Error With Git Creating Project

1 messages · Page 1 of 1 (latest)

ancient jay
#

Hi @wet bronze in your terminal could you run git --version to see if its installed on the machine?

wet bronze
ancient jay
#

this is weird I take it you are getting an error when you run create astro

wet bronze
#

Yeah when I run npm create astro@latest

#

I can show u the steps

ancient jay
#

what version of windows are you using?

wet bronze
#

10

ancient jay
#

ah okay, I thought this got fixed two wee seconds

wet bronze
#

What?

ancient jay
#

we have recently upgraded our cli tool to the new houston bot

#

and there was an issue with windows (surprise)

wet bronze
#

Windows always has something wrong lol

ancient jay
#

aye

#

do you have wsl setup or docker?

wet bronze
#

No

#

I tried docker before and it never worked

ancient jay
#

oh thats unfortunate

#

sometimes it depends on the machine,

wet bronze
#

I can try it again maybe?

ancient jay
#

if your machine allows for hypervisor or virtualisation it then works

wet bronze
#

Not sure if it does.

#

But lets try

ancient jay
#

you can check using task manager to see if you have it

wet bronze
#

yeah I do

ancient jay
#

awesome

#

question, do wish to setup your local machine to have a linux dev environment to work in?

wet bronze
#

What?

ancient jay
#

I ask this cause it makes life developing on a windows machine so much easier,

#

but to address the problem frst of all,

wet bronze
#

Im confused?

ancient jay
#

same, I was trying to test the problem you were having on my own machine

#

only to remember I dont have it setup on windows to do any dev stuff 🤦‍♂️ (I just open up vs code into linux and then Im set) but I appreciate that all setups are unique

wet bronze
#

What can I do to fix this issue?

ancient jay
#

Im just testing this out on my machine atm

#

what version of node are you running (sorry daft question()

wet bronze
#

Oh

#

v16.17.0.

ancient jay
#

could you try running the houston bot again and at that prompt hit (N)

wet bronze
#

at the git?

#

It created the project

#

I do have another issue, after we fix this. Dont need to mix it between

ancient jay
#

okay now in your project can you run git init inside of the dir

wet bronze
#

no I cant

#

`git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • git init
  •   + CategoryInfo          : ObjectNotFound: (git:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException`
ancient jay
#

still getting the 'git' issue?

#

in the terminal can you run >git and see if it spits out the menu

wet bronze
#

with >?

ancient jay
#

sorry that was a typo

wet bronze
#

git does not work in terminal

ancient jay
#

what are you geting back

wet bronze
#

`git : The term 'git' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

  • git init
  •   + CategoryInfo          : ObjectNotFound: (git:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException`
ancient jay
#

can you try reinstalling git

#

I think windows did something when you were sleeping

wet bronze
#

I can try

wet bronze
#

Works now! not sure why that happened :/

ancient jay
#

I think Windows decided to become self aware on your machine for all of a second and well, that never ends well.... 🤷‍♂️