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 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