according to React JS Official docs, I have removed the create-react-app package from my system and after I try to create a new react project with npx create-react-app app-name
command but it did not work for me, After I installed again create-react-app package globally now npx command work perfectly now I'm confused why npx does not work without create-react-app?
Asked
Active
Viewed 36 times
0

Mosh Feu
- 28,354
- 16
- 88
- 135

shakil khan
- 19
- 4
-
Maybe it's a conflict between `npx create-react-app` and global `create-react-app`. Try to remove the global package and then use `npx`. – Mosh Feu Sep 30 '20 at 13:26
-
Dear I had removed create-react-app but after npx create-react-app given me an error – shakil khan Oct 02 '20 at 03:45
-
What error? Does npx working for you with other commands than create-react-app? – Mosh Feu Oct 02 '20 at 06:43
-
Yes npx work with other packages like nodemon etc, now I have installed create-react-app globally and npx works fine but I want to delete create-react-app because it's installing the old react version – shakil khan Oct 03 '20 at 14:37
-
If you delete create-react-app, npx create-react-app should work fine.. – Mosh Feu Oct 03 '20 at 16:28
-
No, it did not work with that package I had checked – shakil khan Oct 05 '20 at 01:59