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

JavaScript Express Basics (2015) Developing Express Apps Like a Boss Adding Routes to the App

Note to others: You might have to swap the order of instructions

I'm using Cloud9 to follow along, and after I cloned the repo, I cd'ed into the directory and npm install gave an error.

Instead, I had to run: git checkout addingRoutesToTheApp.

Once that ran, THEN I could run npm install and all was good in the world.

1 Answer

Nathan Brenner
Nathan Brenner
35,844 Points

When you clone the git repo, the master branch is in the state of the beginning of the course. With each set of changes, the changes are committed on a different git branch. This is address in the beginning of the course.