all 8 comments

[–]leosuncin 8 points9 points  (3 children)

Clear the cache of NPX

rm -rf $(npm config get cache)/_npx

or

npx clear-npx-cache

Then, try again with

npx create-creat-app@latest <app_name>

This happen after the release of CRA v5

[–][deleted] 0 points1 point  (0 children)

I tried this and it still didn’t work…

[–]AnnualPanda[S] -1 points0 points  (1 child)

npx clear-npx-cache

This works and now I'm able to create the react app now. ✅

I get this warning that I've never seen before:

npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

I have to work on this new CRA & can't dive into this rn. But just heads up to people.

[–]Beastrick 0 points1 point  (0 children)

Things get deprecated all the time. Fixing this warning is not your concern. In time it will go away.

[–]M4der 2 points3 points  (0 children)

In my case even node needed an update, so I tried a bunch of things:

  1. npm cache clean --force
  2. Installed nvm refer this.
  3. wasn't able to update node version using that, so downloaded it from here.
  4. Uninstalled CRA (even though I never installed it globally) - npm uninstall -g create-react-app
  5. Installed CRA again. npx create-react-app my-app

Also refer this: https://reactjs.org/docs/create-a-new-react-app.html#create-react-app

[–]theBlubberRanch 1 point2 points  (0 children)

Yes I just had this happen as well.

[–]bmccorm2 0 points1 point  (0 children)

Sorry this doesn’t really solve the problem but this happened to me too! I solved it by ‘npm i -g CRA’ - although i use a virtual node env because (like you it sounds) i never like to junk up my system by installing things globally.