Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
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.
Maciej Czuchnowski36,437 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.
Travis Stewart15,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.
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. ;)