Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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?