Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the whole message: I am still having this issue, I uninstalled node and removed all global installs and it still gives me this errror #11845

Open
NEXTink opened this issue Dec 26, 2021 · 5 comments

Comments

@NEXTink
Copy link

NEXTink commented Dec 26, 2021

the whole message:

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.

Originally posted by @maddyrombes in #8085 (comment)

@clianor
Copy link

clianor commented Dec 27, 2021

try this command
npx clear-npx-cache

@NEXTink
Copy link
Author

NEXTink commented Dec 27, 2021

Also tried this

@marko-hologram
Copy link

the whole message:

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.

Originally posted by @maddyrombes in #8085 (comment)

Judging by that error message you might have an existing global install of create-react-app that is some older unnsupported version or judging by that issue you linked there, CRA might be installed in multiple locations.

Steps that you can potentially perform to resolve this if it's a matter of globally installed package:

  1. uninstall global version of create-react-app -> npm uninstall -g create-react-app
  2. clear npm cache just in case -> npm cache clean --force
  3. clear npx cache just in case -> npx clear-npx-cache
  4. run CRA project generate script -> npx create-react-app my-app-name

There are some other potential solutions listed there in that thread you linked to, so you can definitely try those.


P.S. Next time, please provide more info about the issue you are having. Without some additional context (screenshot, text is even better, or both), it's really hard to resolve issues.

@ikeman32
Copy link

ikeman32 commented Feb 3, 2022

npx [email protected] appName
will force npx to use latest version of create-react-app

@dominicfarr
Copy link

dominicfarr commented Feb 8, 2022

I've also done all the uninstalling and deleting and clearing of caches suggested by this thread and others. I deleted my node, etc, installed nvm and used the latest, 16 and 14 versions, and for good measure restarted my Mac. Nothing works to fix this issue.

The only thing that has worked is the suggestion from @ikeman32 Added @5.0.0 to the npx command works!

Just don't use Capitals in the name of the app it will fail

I wish I understood this better. Let me know if I can provide more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants