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 How to Make a Promise?

Preview ports?

When trying to Preview the Workspace for this video, I get a choice of which Port to preview it on: 3000, 4567, 8000, 8080, 9292. No matter which I choose, I get the error message "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."

I've never seen this port choice before.

1 Answer

Joseph Wasden
Joseph Wasden
20,406 Points

Interesting... I don't recall getting that choice either. It has been a while since I've previewed a workspace, however.

I'd imagine you get the error because there is no view to render in this workspace. The workspace in this case is more of a place to follow along with the video in the workspace console. (Notice there is no HTML file to render/view at the chosen port.)

Go to View > Show Console to follow along with the video. Enter the command node calculation.js in the console prompt and press enter to execute your code file.

Ahh right, you are. Clearly there's more for me to learn about NodeJS