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.

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
218,692 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
218,692 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
218,692 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?