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 React Components (2018) Build Modular Interfaces with Components Using Create React App

Giovanni Toscani
Giovanni Toscani
4,200 Points

When downloading your folder, how do I start the application? Npm start command is not working.

I'm inside the app folder in the terminal, but I don't understand how to make the app start on browser.

6 Answers

Bartlomiej Zabielski
PLUS
Bartlomiej Zabielski
Courses Plus Student 10,363 Points

download files > using git cd into the folder scoreboard > npm install > npm start

Ernest Son
Ernest Son
13,532 Points

I navigated to the folder location in term, npm start, and I get "we're unable to detect target browsers"

Ernest Son
Ernest Son
13,532 Points

I created the project workspace locally. It worked the first time through, but I had to restart my machine...

Tareq Alothman
Tareq Alothman
17,921 Points

What is your environment? are you using a local machine? or your building on a remote server?

in my case, I am using AWS EC2 server. I ran "npm start" inside the scoreboard folder, then added port 3000 to the security group inbound rules in order to open the app in the browser!

hope this helps, good luck

Tareq Alothman
Tareq Alothman
17,921 Points

yeah, i forgot to mention, you need to access the app by attaching the port to the url, for example

192.168.1.5:3000

Ernest Son
Ernest Son
13,532 Points

nm, simply responding 'yes' in term updates the package.json and everything's honky-dory

The files in the project folder don't create a node module. How do I add node into the project?