what did you use choclatey for?
I don’t think you would have received the error if the path wasn’t in there, its possible something added it for you but usually you have to do it manually…
I’m no expert so this may not be entirely correct:
When you use something like ruby that runs at the command prompt, it will work only in the directory where that executable is - so if you install ruby to c:/ruby, and you are in that directory then ruby commands might work from the command line cause the executable is there also. But normally you would want the command prompt to be able to access those commands no matter where you are - so you add the path to the executable to your environment variable. Then the command window knows how to execute the commands no matter where you are.
To do this, right click on
This PC in file manage, then Properties >> Advanced System Settings >> Environment Variables and then you will see both system variables and user variables - I use system variables but I think either would work. Then double click on Path and you will see a list of things - see if one of them is a path to ruby/bin, if not add it in.
To be more precise my path for ruby is: C:\Ruby22-x64\bin - this is the line highlighted below.
This was all a mystery to me for quite a while, now I sort of get what is going on.
The error you get looks like ruby is working, so the path may not be your problem. But I would double check it and make sure the path is correct, maybe choclatey did something and there are 2 and it is using something that doesn’t work?