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 trial

JavaScript

3 Answers

Guil Hernandez
STAFF
Guil Hernandez
Treehouse Teacher

Hi 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. :)

Erik L
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Erik L
Full Stack JavaScript Techdegree Graduate 19,470 Points

I 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
Charles Badger
18,189 Points

no, 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.

Charles Badger
Charles Badger
18,189 Points

Yup, 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Erik L
Full Stack JavaScript Techdegree Graduate 19,470 Points

I 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...