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

React app not being able to install #11991

Open
buchi-code opened this issue Jan 27, 2022 · 8 comments
Open

React app not being able to install #11991

buchi-code opened this issue Jan 27, 2022 · 8 comments

Comments

@buchi-code
Copy link

am having issue's with creating my react app

@ddelrio95
Copy link

Have you tried updating node? and your package manager. Which one are you using? Also the OS.

@tonai
Copy link

tonai commented Jan 28, 2022

I am also unable to create a new react app.
When running npx create-react-app my-app the process stop after few seconds:

npm http fetch GET 200 https://registry.npmjs.org/create-react-app 212ms (cache revalidated)
Need to install the following packages:
  create-react-app
Ok to proceed? (y) 
npm http fetch GET 200 https://registry.npmjs.org/create-react-app 6ms (cache hit)
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 341ms
npm http fetch GET 200 https://registry.npmjs.org/tar 50ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/tar-pack 841ms (cache revalidated)

You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).

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/

I don't have any global install of create-react-app.
npm list -g gives:

├── @mdxp/create-webpack@0.2.5
├── corepack@0.10.0
├── decktape@3.4.0
├── http-server@14.0.0
├── npm@8.1.2
├── pnpm@6.25.1
└── vue-spotlight@

I am using Node version 16.13.1 installed with nvm

@souvikpal2000
Copy link

souvikpal2000 commented Jan 28, 2022

am having issue's with creating my react app

Uninstall the create-react-app using "npm uninstall -g create-react-app" and again reinstall it using "npm install -g create-react-app". This problem I just faced today.
Or use npx create-react-app

@thanhpd
Copy link

thanhpd commented Jan 28, 2022

@buchi-code @tonai I also faced the same problem and using npx create-react-app@latest my-app helped. Perhaps you can give it a try.

@tonai
Copy link

tonai commented Jan 28, 2022

Thanks @thanhpd your solution works.

@bartdorsey
Copy link

Why would we have to do npx create-react-app@latest to make this work? This seems like a bug somewhere, either with npm or npx or create-react-app.....

@DylanSp
Copy link

DylanSp commented Feb 9, 2022

Possible duplicate of #12022.

@dominicfarr
Copy link

I'm having similar issues.
Mac V12.1

  • Node version 14.x 16.x, and 17.x
  • npm cache clean --force
  • sudo npm uninstall -g create-react-app
  • npx clear-npx-cache

using a versioned create-react-app doesn't always work.
for example
nvm use 14 - creaet-react-app@5.0.0 correctly setup
nvm use 16 - creaet-react-app@5.0.0 fails to setup stating "A template was not provided. This is likely because you're using an outdated version of create-react-app."

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

8 participants