Hi I am trying to npx create-react-app myapp on my terminal but it starts to execute but always hangs up on random node module but the operation can be terminated by ctrl c but the main issue is when I try to install the same node module on which it hangs up it gets install seperately with success but when trying to run cra again it hangs on another node modules I have lates npm version 8 also and 9 also and having node 18 also and 19 also.... And I have installed the create-react-app version of 5.0.10 Please help me I m stuck in this... Cra is creating the main error I think
4 Answers
I was facing the same issue with Node 18.18 but was able to run CRA once I did npm i create-react-app
1 Comment
yes actually i faced the same error while creating the react app, i used node version 21.7.1 as it is not working after I use the Recommended versions: Node.js: 16.x or 18.x (avoid Node 19 or newer with create-react-app) npm: 8.x or later
1 Comment
Go to your project's folder and run the following command;
npm install create-react-app
This will install the "create-react-app" package in your project's local "node_modules" folder. Then you can create a new React app using the "create-react-app" command in your project's folder.
npx create-react-app my-app