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.

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.