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 Build a Simple Dynamic Site with Node.js Creating a Simple Server in Node.js Creating a Simple Server

Vladimir Plokhotniuk
Vladimir Plokhotniuk
5,464 Points

i cannot run the server

i got error " Uncaught ReferenceError: require is not defined" on the first line of code : const http = require('http'); what i did wrong? i copied code and runned via webstorm

1 Answer

Steven Parker
Steven Parker
229,644 Points

I'm not familiar with "webstorm". Does it possibly require some configuration setting or add-ins to work with node.js?

If you can't get it working, you might try running the project using the Treehouse Workspace.