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 trialJuliette Tworsey
Front End Web Development Techdegree Graduate 32,425 PointsNode.js - Port 3000 unavailable
Hi,
When I attempt to run app.js in the console followed by clicking on port 3000 to preview it says "workspace unavailable".
I can't understand what is wrong.
Here is a forked link to my code so far:
https://teamtreehouse.com/workspaces/10302132
Thanks in advance to anyone who can help me spot what is wrong:-)
Gabriel Ward
20,222 PointsHi Juliette,
I'm having the exact same issue. I was wondering if you could let me know exactly how you solved the issue? I would greatly appreciate it.
Joshua Britton
10,252 PointsI had this exact same issue & found the answer in another Treehouse post. The issue for that person (& for me) seems to be using "HTTPS" vs "HTTP". Switching my "HTTPS" references to "HTTP" took care of it for me (as suggested by one of the commenters in the other post): https://teamtreehouse.com/community/server-is-unavailable
I know this probably doesn't help you now, but thought I'd post for future reference. Best of luck to all in your web dev studies!
8 Answers
Unsubscribed User
14,667 PointsMake sure you first enter node app.js to the console. So the server is running and then open the preview on port 3000. Hopefully this will help you.
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 PointsThanks Sanne. That is what I did and it still didn't work.
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 PointsI code/learn & re-learn/play guitar and sing....then sleep:-)
Gabriel Ward
20,222 PointsNice, and you're focusing on web development?
Aaron Endsley
Courses Plus Student 17,625 PointsI am having the same issue
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 PointsI started the class over again from the beginning while working in my own console and now it's working.
I type this into my terminal:
http-server -p 3000
Good luck:-)
Gabriel Ward
20,222 PointsHi Aaaron, did you manage to solve this issue. I too am having it.
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 PointsHi Gabriel,
Check out this tutorial for installing http-server (via NPM) if you are unable to resolve this issue. This is what worked for me:
https://teamtreehouse.com/library/npm-basics/installing-packages-with-npm/installing-global-packages
If you're interested, maybe take the whole course. It's not that long. I have found it (NPM) to be quite useful and I often find myself coming back to this course for a refresher.
Cheers:-)
Gabriel Ward
20,222 PointsHi Juliette,
Thank you for your reply.
Did you take this course before completing the 'Build a simple website with Node.js' course? Just because, that appears before the npm basics course in the Javascript Track.
Do you mind if I ask, do you work professionally as a web developer?
Cheers
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 PointsHi Gabriel,
I did take the JS Track, so I guess (..don't remember) that I must have taken the "NPM" course after the 'Build a simple website with Node.js' course.
No, I don't work professionally as a web developer, that's why I am here on Treehouse trying to get my skills up and running. How about you?
Cheers:-)
Gabriel Ward
20,222 PointsOk cool. Yea I actually solved the issue I was having so have been able to continue following along in workspaces.
I too am here, wanting to learn the necessary skills to be a web developer. Luckily, I've managed to land a couple of contracts building websites for people. Can, ask how many hours do you code a day? I'm fascinated by the different paths that people travel down to get to where they want to go.
I try and do around 7 -8 hours a day.
Michael Tenney
7,643 PointsHello Juliette,
Out of curiosity, have you yet found a position as a front-end web developer? looking at the courses you have completed, it seems like you would be more than up for the task. I actually work full-time as a front-end developer for a marketing firm in Dallas but am on this site to improve my skills in javascript, C#/.NET. Try applying for some positions if you haven't already, as again it seems as if you are more than ready!
Jonathan Ankiewicz
17,901 PointsI see your profile says your working on the nano degree. How do you like it?
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 PointsHi Michael!
I have been diving into some full stack courses (Express, Node.js, MongoDb) over the course of the last few months and I have also been trying to level up on my JS skills, though I have not found a position as a developer yet. Is your company hiring (lol..had to ask) or do you know of one that is? Thanks so much for the kind words!!
Michael Tenney
7,643 PointsFun stuff! Sorry for the really late reply, there is a never-ending stream of Frontend Dev jobs available down here in Dallas. Look at Indeed, Dice, and even Monster, and you will see plentiful opportunities. Glassdoor can help in figuring out the salary to negotiate for. You might take a hit if you have not done development work for another company yet, but as soon as you do land a position, and update your resume, you will not have time to answer all of the calls from IT recruiters.
I recommend taking the code you have written in your workspaces, and posting it on github, as a record of training so that prospective employers can know what you have played with.
I am actually hoping to start my own company in the next year or so, and I am currently laying out the groundwork for a youtube channel to increase brand awareness, and give my company a sense of authority in the field.
Chufan Xiao
18,955 PointsI gave up using Treehouse workspace for this tutorial and use c9.io instead
Unsubscribed User
14,667 PointsUnsubscribed User
14,667 PointsI can't access this link, so unfortunately I can't have a look what is wrong.