Noob questions(pls help)

So, I have decided to code a fnf mod but I have got a few questions.

  1. What is a PATH?
  2. Whenever I run haxelib git faxe GitHub - uhrobots/faxe: FMOD Audio Engine for Haxe in command prompt i get Could not use git, please make sure it is installed and available in your PATH. What does this mean and how do I fix it? I do have git installed and have played around with the download setting where it mentions PATH.

Thx for the help

Hey @codernoobman, welcome to the community
That’s not a “noob questions” btw. But here are the answers,

  1. According to IBM,

The PATH environment variable is an important security control. It specifies the directories to be searched to find a command.

it’s just an environment variable, which tells the shell to search for an executable. So that the executable (*.bat, *.cmd, *.exe etc) can be executed anywhere while the environment variable is present. Adding the executable files in the variable will be helpful for the same to execute everywhere, without calling it from it’s original path.

  1. From where you got git from?

To solve the issue, you can add these to PATH environment variable by going into windows settings, values C:\Program Files\Git\cmd\, C:\Program Files\Git\bin\

Also try running git just by executing git in the shell

HI @sudo-nautilus ,

Thank you for that, I got git from Git - Downloads . I have tried running git in windows PowerShell but it does not work. I have also tried just using the git command but it says that it is not an external or internal command.

When I go into Environment variables, I don’t see a PATH entry to edit - I did try adding one, but that also didn’t work.

Thanks again for your help!

Hmmmm just thinking - I don’t have admin rights on the laptop - could this be the problem?

You may read this article on how to add the variable

Probably not, but still you can try that (are you saying that git isn’t installed with admin privileges?)

Git is installed with admin privileges. (to my knowledge) as I had to put in the password so it could access my files.

I can’t see the path variable in the system variables. I can see one in user variables but not in system variables. My mum was helping me earlier and she deleted a system variable called PATH. She claims to have made it but now I am not to sure as I can not see the variable that I should be seeing as specified in the article that you shared with me.

what the fu~

Is there anything called Path

‘try’ adding the value to that variable

nope
I am not sure why she deleted it

ok
I hope it works because I have spent the last 3 hours trying to figure out why this is not working.

Hmm, 3 hours🧐

Good luck.

Thanks for that. I am trying to code a friday night funkin mod

Interesting…
Adding the value in the user variables may work

I was just thinking, maybe is the problem that I am not using Git CMD?

Also , I’m dumb, what value should I put into the user variable?

You mean what?

C:\Program Files\Git\cmd\

C:\Program Files\Git\bin\

This can only make sense, if git is installed in the default path

ok thanks for that
this has been really helpful

You are welcome, take care :slight_smile: