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!
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
Kevin SData Analysis Techdegree Student 15,862 Points
Not Understanding the Installation Steps When Using Provided Files
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.
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??
Steve Gallant14,943 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.
brandon may7,904 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
So then do we add the updated files to the one we've been working in?
To avoid confusion, just stick to the instructions. Download the files provided, then using the terminal go to the scoreboard folder and run "npm install". Once installation is complete run "npm start" that should work assuming you already have nodejs and npm install on your computer. There are few folder in the zipfile you download, make sure you use the correct one.
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?