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 Installing and Using Create React App

As of 01/12/2021 there is a different way to use create-react-app

When you attempt to follow the video or if you already have create-react-app installed globally then you need to follow instructions here: https://create-react-app.dev/docs/getting-started/

short version is to uninstall create-react-app globally:

npm uninstall -g create-react-app

or

yarn global remove create-react-app

then you can do this: npx

npx create-react-app my-app

npm

npm init react-app my-app

Yarn

yarn create react-app my-app

This worked for me. Hope this helps!

1 Answer

Lee Vaughn
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Lee Vaughn
Treehouse Teacher

Thanks for sharing this Andrew Hinkson!

Until we are able to reshoot the video, which can take a bit of time in this new Covid world, I will see about getting the Teacher's Notes for the video updated to reflect this.

Thanks again!