facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.76k stars 26.87k forks source link

a template was not provided #12719

Open Numanpaf885 opened 2 years ago

Numanpaf885 commented 2 years ago

Hi there i am beggining coding and i was creating a react app it creates the app but it returnes me A template was not provided. This is likely because you're using an outdated version of create-react-app. Please note that global installs of create-react-app are no longer supported. You can fix this by running npm uninstall -g create-react-app or yarn global remove create-react-app before using create-react-app again. I did tried to use npm uninstall -g create-react-app it but it gave me the same answer and the version of my create-react-app is 18.13.2. Here you have some screenshots it may help you.

Captura de pantalla (48) my create-react-app version

Captura de pantalla (47) problem screenshot can anyone help me please.

swimtrunks commented 2 years ago

this might be a cache issue as well. after running npm uninstall -g create-react-app you can also run npm cache clean --force to clear the cache. this link is to a stack overflow that touches on this issue in particular. feel free to take a look and report back if you have any other issues.

also it wouldn't hurt to look at the docs in this case

Numanpaf885 commented 2 years ago

It gave me the same answer.

jampopoy commented 2 years ago

Hi there,

If you are just starting out. May I suggest using the latest version of the react you can do that by typing this on your terminal

npm init react-app firstapp

make sure as well that you do this on your newly created folder or environment. Hope this helps.