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

Development Tools

Steven Seybold
Steven Seybold
1,194 Points

When I run 'gulp serve' I get - Task 'serve' is not in your gulpfile. I thought that was a built in function, no?

I even deleted the node_modules folder and did 'npm install' again to ensure all was installed correctly.

1 Answer

Nope, just the default task can be run with just the gulp command. Everything else is just the task name after gulp, so gulp serve would still require a serve task to exist.

Another common thing to do is to create multiple tasks and then put them as dependencies for the default task so it will run them all for you with just the gulp command.