JavaScript React Components Build Modular Interfaces with Components Setting up with Create React App

Kevin S
Kevin S
14,868 Points

Not Understanding the Installation Steps When Using Provided Files

Hi all,

I am trying to use the provided starter files for this project located inside Setting up with Create React App/scoreboard.

Guil starts this video by saying that you need to run npx create-react app scoreboard. Do I need to do this step as the downloaded files already contain a folder called scoreboard? If I do, which files should I move from the downloaded from Treehouse files and put into the new 'scoreboard' folder that I created with the command? I guess I am just not sure if Guil already installed Create React App into the provided files from Treehouse.

Thanks!

luther wardle
luther wardle
12,216 Points

I don't believe you need to run the npx create-react app as long as the folders you downloaded also have versions of the dependencies you'd be using in the series to build apps, the purpose of the create-react app is just to assign a directory for the application.

I'm also new to react so I could be wrong, have you tried it without running the cmd?

Erik L
Erik L
Full Stack JavaScript Techdegree Graduate 19,463 Points

I agree, when I sed the npx command I received two scoreboard folders, one has a node_modules folder, should I delete on of them??

3 Answers

David Austin
David Austin
1,216 Points

The scoreboard project is already set up for you with Create React App.

brandon may
brandon may
3,633 Points

npx create-react-app scoreboard creates a new project called scoreboard, with none of the information in the files that Guil's project scoreboard does. Essentially, npx create-react-app starts a new project with the skeleton files already started

Steve Gallant
Steve Gallant
14,795 Points

Per Guil's comments, you do not need to run the npx command - he is simply showing us what command he ran in order to prepare the files for our use in this course. The first command needed is the install command.

hth, Steve