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

Timothy Williams
Timothy Williams
14,355 Points

Using Cloud9, not running the application with npm run serve (at least not on the right port)

I've downloaded the project from github, and have installed all dependencies and devdependencies. However, when I use "npm run serve" I get "Webpack: compiled successfully" but there isn't a preview I can go to. I've tried changing the flag in package.json from --port 8080 to --port process.env.PORT but get errors.

Can anyone help me figure this one out? I love using Cloud9 and do not want to download another IDE just for this single project.

Thank you

(This question relates to the course "Angular Basics" when Andrew first gets the project up and running on his local host.

1 Answer

Steven Sullivan
Steven Sullivan
11,616 Points

Try running "node app" or "node filename.js" (filename.js being the core codebase of your application).