When I create a new react app with
npx create-react-app my-app
I only get node_modules and package.json and nothing else.
I also have to force it to stop, otherwise it never stops.
I searched for the solution and:
removed and installed newest node.js and npm
unistalled and installed back create-react-app
tried yarn create-react-app my-app
tried npm init react-app my-app
also npm install
npm cache clean --force
& npm install -g npm@latest --force
None of this worked and I never could not get full react app.
I have been working with React for some time and never encountered this before.
I am Windows user.
What else I can do?
snigo
January 10, 2020, 11:17pm
2
Well, I can only imagine 2 types of problems here:
Permissions (very unlikely as npm would immediately throw an error)
Network (most likely)
Did you try to ping package: npm ping create-react-app
?
UPDATE: Actually, if install starts - ping would be ok Try to create hotspot from phone and try again maybe.
nuclear option: delete all node_modules and npm files and folders manually then reinstall them
death star option: buy a new computer
Even I had the same issue and after lot of struggle found the fix . So, if you are unable create the app try reinstalling nodeJS in 32-bits and try it. This helped me fix this issue. Hope, it helps you too! Happy hacking
I am also facing the same issue. did you find any solution for this?
If anyone is still facing the same issue. Here is a quick fix:
npm config set registry "http://registry.npmjs.org"
then
npm set maxsockets 3
Thanks to: https://stackoverflow.com/questions/54397626/stuck-at-npm-install-at-fechmetadata-checking-installable-status