I have installed nodejs then I tried to create react is app using npx create-react-app my-app but it just stuck in installing react-dom,cra-templates and then I tried npm also but it's the same please help need to learn react js please help I have node version v16.13.2. and npm version 8.1.2
PS D:\Programming\React Js> npx create-react-app firstapp
Creating a new React app in D:\Programming\React Js\firstapp.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
You can try to install globally, generally there are no more problems after. To install run this command
npm install -g create-react-app
Once installation successful, try running
npx create-react-app my-app
You likely have a global installation of create-react-app which is not the latest version. Uninstall it using npm uninstall -g create-react-app.
The CRA docs recommend uninstalling the global version in their very first steps:
If you've previously installed create-react-app globally via npm install -g create-react-app, we recommend you uninstall the package using npm uninstall -g create-react-app or yarn global remove create-react-app to ensure that npx always uses the latest version.