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 trialKevin S
Data Analysis Techdegree Student 15,862 PointsNot 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!
Erik L
Full Stack JavaScript Techdegree Graduate 19,470 PointsI agree, when I sed the npx command I received two scoreboard folders, one has a node_modules folder, should I delete on of them??
4 Answers
Steve Gallant
14,943 PointsPer 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
brandon may
7,904 Pointsnpx 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
David Austin
1,217 PointsThe scoreboard project is already set up for you with Create React App.
Jelena Feliciano
Full Stack JavaScript Techdegree Student 12,729 PointsSo then do we add the updated files to the one we've been working in?
Henry Blandon
Full Stack JavaScript Techdegree Graduate 21,521 PointsTo 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.
luther wardle
Full Stack JavaScript Techdegree Student 18,029 Pointsluther wardle
Full Stack JavaScript Techdegree Student 18,029 PointsI 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?