Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Generate a Rails Application

What do I do if my windows command line returns bin' is not recognized as an internal or external command, operable prog

When trying to start my server using windows to start my odot project, I get the return shown above. I would greatly appreciate some much needed help on what I should do. I don't know if I should just input 'rails server' or if the bin is somehow is related to this particular project. Thank you to anyone who can take a moment and help.

Change from a forward to a backslash. In the video, Jason use "/" in his paths. windows machines use "\". this should fix the issue.

Happy learning!

3 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,426 Points

Ignore the whole bin thing, use "rails server", it should work if you installed everything correctly and if you are currently inside your app folder.

Thank you again.

Yupp, This work. dziękuję

Travis Stewart
Travis Stewart
15,188 Points

I got the same message. Tried adding ruby to the beginning, so " ruby bin\rails server " and it ended up working. I know it's an old question. I just wanted to add this for others who come through.

This one worked for me, Thanks Travis if you are still here :D

Instead of using the default command prompt in Windows OS, use Bash. Then, all the commands will work properly like in the videos. And, you'll be able to use all the commands that Mac and Unix users use.

When installing Git on Windows, make sure you select the option to also install "Git Bash". It may even have been enabled by default, and put into the right-click context menus for Explorer. So, either right-click in your desktop or any directory, then choose "Git Bash Here", then proceed as normal. ;)

Travis Stewart
Travis Stewart
15,188 Points

I'll have to try that out.