Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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,441 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.