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 trialErik L
Full Stack JavaScript Techdegree Graduate 19,470 PointsQuestion about react
So I just finished this video, https://teamtreehouse.com/library/setting-up-with-create-react-app-2, but my question is do we have to run this command on the console for each new react project we create???
npx create-react-app my-app
3 Answers
Guil Hernandez
Treehouse TeacherHi Erik L,
Support for the npx
command happened after I recorded the Create React App workshop. I'm going to update the teacher's notes to let students know. :)
Charles Badger
18,189 PointsYup, every time you want to use create-react-app to make a new react app, you need to run npx create-react-app.
Erik L
Full Stack JavaScript Techdegree Graduate 19,470 PointsThis is the workshop where I donβt think I saw the words npx at all https://teamtreehouse.com/library/using-create-react-app
Erik L
Full Stack JavaScript Techdegree Graduate 19,470 PointsI just finished watching the create react app 20 something minute workshop and we had to install create react app globally, but I donβt think I saw npx once in that tutorial. I am so confused right now...
Erik L
Full Stack JavaScript Techdegree Graduate 19,470 PointsErik L
Full Stack JavaScript Techdegree Graduate 19,470 PointsI am currently taking the TD for this unit, I set up the project files for this: https://teamtreehouse.com/projects/react-gallery-app by following along the create-react-app workshop, will my project files be affected negatively if I didn't use the npx command to set up my project files?? Also does this mean I get a debugger badge??
Charles Badger
18,189 PointsCharles Badger
18,189 Pointsno, npm create-react-app will still install the react boilerplate needed to make a react app. The difference between npx and npm is that you can use npx to run a package without having to install it globally. This means that when you use npx you always get the latest package installed.