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

Christopher Gjelten
Christopher Gjelten
2,305 Points

React app - error installing

Ait, so when I try to install react (npm install -g create-react-app). I have also tried force and still wont work. Any solutions

1 Answer

Ari Misha
Ari Misha
19,323 Points

Hiya there! what kinda error does your console throws? Can you show us the error?

Christopher Gjelten
Christopher Gjelten
2,305 Points

ah, I fixed it. Had to download it globally as root :)

Michael Hulet
Michael Hulet
47,913 Points

"Downloading something globally as root" really isn't a good thing to do. It's really insecure. A better solution would be to make sure you're in a directory that you're supposed to own, and change its ownership to your user. You should generally be wary about using the root user, and only do so if you have to