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

npx create-react-app my-app is isn't installing the packages and i try uninstalling npm using -g but still. #10133

Closed
AhmadSalihu opened this issue Nov 24, 2020 · 6 comments

Comments

@AhmadSalihu
Copy link

here is the problem i get everytime i try to install the packages. Can you please help? i willl be glad....

C:\Users\AHMED\Desktop\robohash\trove-app>npx create-react-app trove

You are running create-react-app 4.0.0, which is behind the latest release (4.0.1).

We no longer support global installation of Create React App.

Please remove any global installs with one of the following commands:

  • npm uninstall -g create-react-app
  • yarn global remove create-react-app

The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/

npm ERR! code 1
npm ERR! path C:\Users\AHMED\Desktop\robohash\trove-app
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c ""create-react-app" "trove""

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\AHMED\AppData\Local\npm-cache_logs\2020-11-24T00_04_00_794Z-debug.log

C:\Users\AHMED\Desktop\robohash\trove-app>

@kristianpedersen
Copy link

kristianpedersen commented Nov 24, 2020

Edit: Try @willwearing's suggestion below instead: npm install -g npm@latest

My original post:

I'm getting the same error on MacOS 11.0.1, and I've always used npx.

This works for me, but I have to type it every time: npx create-react-app@4.0.1 my-app.

@jrodshua
Copy link

Getting the same issue on Debian/Linux 10

didn't know about that workaround, thanks for posting that! @kristianpedersen

@willwearing
Copy link

I actually got this working by doing the following: npm install -g npm@latest

@AhmadSalihu
Copy link
Author

Thank you so much @kristianpedersen it did work. But also me too i have to run it like your own way, using the version no. but am really glad o got it working dude. Once again thanks

@salimdason
Copy link

  1. First, you'll need to uninstall "create-react-app" using the "npm uninstall -g create-react-app" command.
  2. Run "npx create-react-app my-app" each time you want to create a new React app.
    Hope you find this helpful

@AhmadSalihu
Copy link
Author

thanks to all the people that try to help me solved my issues in one way or the other. Am really grateful and I, appreciate you all.

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