Npm start does not work on cloud9 workspace


I’ve been trying to run an angular seed project… which runs a simple http-server. On doing -

npm start

I get -

Starting up http-server, serving .
Available on:
Hit CTRL-C to stop the server

But the above links do not work. I’m not sure what can be going wrong here.
(the https versions don’t work either)

How can we fix this?


To solve this, tell your server to listen on process.env.IP and process.env.PORT. This is crucial, because your app must be listening on to be accessible, as localhost/ is not externally available.


Thank you for your reply dannytech.
I found an easy solution - Just click on “preview” above and click “click preview running application”.
Now it runs all well :slight_smile: