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 trialneilsatterfield
Front End Web Development Techdegree Graduate 18,018 Pointscreate-react-app not working with Windows 10
I'm able to install create-react-app and it shows this in the terminal after I've installed it: C:\usr\local `-- create-react-app@1.4.3
When I try to create a project using the windows terminal, node terminal or Windows Power Shell, I get errors saying that 'react-create-app isn't recognized' or 'command not found'. I've seen similar issues mentioned on github and stackoverflow, but the suggestions for changing the system PATH haven't worked for me: https://github.com/facebookincubator/create-react-app/issues/1587 https://github.com/facebookincubator/create-react-app/issues/3326
Has anyone else had any luck installing create-react-app on Windows 10? Thanks.
3 Answers
Ari Misha
19,323 PointsHiya there! It defo looks like a PATH VARIABLE issue and also npm issue. I'd suggest either uninstall the Node from your machine and get the latest one up and running, OR downgrade your npm to version 4. There is one more way to do this: Find the create-react-app folder in your npm modules folder , and copy the path , and paste it directly in your Advanced Environment Variable Path. Yeah do it manually. That might solve the issue. Post back if you need more help.
~ Ari
neilsatterfield
Front End Web Development Techdegree Graduate 18,018 PointsAri Misha, unfortunately that didn't work for me yet.
I upgraded to Node.js 8.9.1 In System Properties > Advanced > Environment Variables, I searched for the create-react-app path and found this: C:\Users\AppData\Roaming\npm\node_modules\create-react-app and I added that to the User variables and System Variables sections and clicked OK.
I navigated to the Node command prompt and typed in: create-react-app search-app
But I still get this error: 'create-react-app' is not recognized as an internal or external command, operable program or batch file.
Before I downgrade to npm to version 4 (I currently have version 5.5.1) , do you notice any issues with what I've done so far? Thank you.
Ari Misha
19,323 PointsYeah, there is an issue I noticed, is that you didn't copy the path of the .bat file, instead, you copied the path for the whole module instead. There is an easy fix for it. Get in the folder, and try to find the .bat (batch file) for create-react-app and copy the path for .bat file and paste it in your Advanced Path variable Environment settings. A Batch file is a file that runs in your cmd.exe. Catch my drift?
neilsatterfield
Front End Web Development Techdegree Graduate 18,018 PointsStill no luck (I couldn't find a .bat file anywhere in the create-react folder), but thanks for your help Ari. For now I'm going to get back to doing the other React tutorials, but if I figure out a solution in the future, I'll post it on this page.
neilsatterfield
Front End Web Development Techdegree Graduate 18,018 PointsIn case anyone else runs across this issue, I ended up installing create-react-app on a Windows 10 laptop that didn't have that much software on it, and it installed correctly the first time. I then copied the same value from the PATH to my other Windows machine, and it worked.
System Properties > Advanced > Environment Variables... > User variable section > Path Then I added this to the end of the other Path values: C:\Users<mycomputername>.<location>\AppData\Roaming\npm
There are other users who had similar issues and resolutions listed on this page: https://github.com/facebookincubator/create-react-app/issues/138#issuecomment-234998109
neilsatterfield
Front End Web Development Techdegree Graduate 18,018 Pointsneilsatterfield
Front End Web Development Techdegree Graduate 18,018 PointsThanks for the quick reply, Ari! I will take a look once I get home from work tonight and let you know if that solved the issue.