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

Server not working

Hello, I tried to set up my server in accordance with the teacher's video, but it doesn't work on port 3000. Can someone please help me? The workspace is https://w.trhou.se/8fxal9y3im Thank you!

Steven Parker
Steven Parker
231,110 Points

That's a "live" workspace URL, and is only temporary. For a persistent one, use the snapshot function (the camera icon).

I modified the workspace link. Thank you

4 Answers

Steven Parker
Steven Parker
231,110 Points

I tried running your app.js, and once it indicated the server was running, I had no trouble establishing a preview connection. The preview page shows:

Hello World
Goodbye World

And yes, I was using port 3000.

Thanks for your answer, but I am still getting a problem with my computer. Its printing exactly: "Workspace Unavailable

This is a preview link for a Treehouse Workspace that is not currently active.

If you are the workspace owner, you can launch it again via the Treehouse site"

My workspaces are not full, I have just used 50 or 60 out of 100. Could you explain me why?

Steven Parker
Steven Parker
231,110 Points

I can tell you that's the message I see before I run the app.js, but once the app is running I get the page as expected.

Yes! This is working! I didn't know this step. Thanks so much for your help.

Thank you!

How do you get your app to run so that the preview button works?