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 Write Our First Tests

Brian Schmitz
Brian Schmitz
11,167 Points

Syntax not working in the terminal on windows when running tests - "mkdir -p spec/features/todo_lists"

Does anyone know if there is alternative for this code for windows so that I can create the sub-directories here. I am getting a response in the terminal that says "syntax of the command is incorrect."

I have - "mkdir -p spec/features/todo_lists"

Thanks

3 Answers

Michael Hulet
Michael Hulet
47,913 Points

If you're on Windows, try omitting the -p flag

Brian Schmitz
Brian Schmitz
11,167 Points

Hey Michael,

I tried that and it gave me the same "syntax not working" message. I just went into cd spec and created mkdir features and then went into that folder and created mkdir todo_lists and that has seemed to work fine this far. We'll see if I need to have the subdirectories at all later I guess.

Thanks for the time.

Ryan Hemrick
Ryan Hemrick
12,759 Points

Using backslashes instead of forwardslashes works