If you use npm 5.1 or earlier, you can't use npx
.
Instead, install create-react-app
globally:
npm install -g create-react-app
Now you can run:
create-react-app my-app
If you use npm 5.1 or earlier, you can't use npx
.
Instead, install create-react-app
globally:
npm install -g create-react-app
Now you can run:
create-react-app my-app
thanks from Bangladesh for this helps
Thank you so much. It was helpful me.
شكرا
thank you that was very helpful!
Thank!!!
thankyou!
Thank you very much! The new Node update had thrown me off for a minute.
I was lost for a hot minute when I saw the message, but thank you so much for this.
Thank you so much !! 😂
Thanks. its help
thanks
Hi guys I have been having troubles with npm install -g create-react-app for a long time. Every time I do npm or npx on my command prompt this is what shows up after 4-5 hours.
"C:\Users\User>npm uninstall -g create-react-app
removed 67 packages, and audited 1 package in 4s
found 0 vulnerabilities
C:\Users\User>npx create-react-app my-app
Creating a new React app in C:\Users\User\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/jest-resolve/-/jest-resol
ve-27.4.6.tgz failed, reason: getaddrinfo ENOTFOUND mydomain
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2022-02-25T22_39_55_041
Z-debug.log
Aborting installation.
npm install --no-audit --save --save-exact --loglevel error react react-dom re
act-scripts cra-template has failed.
Deleting generated file... package.json
Deleting my-app/ from C:\Users\User
Done.
C:\Users\User>"
Could someone please help me on how to work this out for me as I had no luck for the past month. Thanks.
thanks
Thank you
nategentile@MacBook-Pro-de-Nate React % npx create-react-app intro-javascript
Creating a new React app in /Users/nategentile/Desktop/React/intro-javascript.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...
added 1355 packages in 42s
171 packages are looking for funding
run npm fund
for details
Initialized a git repository.
Installing template dependencies using npm...
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: intro-javascript@0.1.0
npm ERR! Found: react@18.0.0
npm ERR! node_modules/react
npm ERR! react@"^18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"<18.0.0" from @testing-library/react@12.1.5
npm ERR! node_modules/@testing-library/react
npm ERR! @testing-library/react@"^12.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/nategentile/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
thank you ,
thanks bro !****
Hi guys I have been having troubles with npm install -g create-react-app for a long time. Every time I do npm or npx on my command prompt this is what shows up after 4-5 hours.
"C:\Users\User>npm uninstall -g create-react-app
removed 67 packages, and audited 1 package in 4s
found 0 vulnerabilities
C:\Users\User>npx create-react-app my-app
Creating a new React app in C:\Users\User\my-app.
Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template...
npm ERR! code ENOTFOUND npm ERR! syscall getaddrinfo npm ERR! errno ENOTFOUND npm ERR! network request to https://registry.npmjs.org/jest-resolve/-/jest-resol ve-27.4.6.tgz failed, reason: getaddrinfo ENOTFOUND mydomain npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settin gs. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2022-02-25T22_39_55_041 Z-debug.log
Aborting installation. npm install --no-audit --save --save-exact --loglevel error react react-dom re act-scripts cra-template has failed.
Deleting generated file... package.json Deleting my-app/ from C:\Users\User Done.
C:\Users\User>"
Could someone please help me on how to work this out for me as I had no luck for the past month. Thanks.
Re-start your computer, Windows. Use, gitbash or cmd for the commands, don´t use power shell
"npx create-react-app doesn't work for me. I get this feedback I already tried reinstalling the latest version of node using nvm-windows. This is what the path of my environment variable looks like, automatically added by nvm; If i first do "npm i -g create-react-app" before the npx command it works, but i shouldn't have to do that right?
Run
- npm install create-react-app
- npx create-react-app project-name.
It will probably work without the -g flag.
yeah it worked, thanks !!
Run
- npm install create-react-app
- npx create-react-app project-name.
It will probably work without the -g flag.
its worked !!
Run
- npm install create-react-app
- npx create-react-app project-name.
It will probably work without the -g flag.
thank you!
Thank you
Thanks @gaearon!
Thanks!
You are running
create-react-app` 4.0.3, which is behind the latest release (5.0.1).
We no longer support global installation of Create React App.
Please remove any global installs with one of the following commands:
Thanks a lot for this post, Its help
thankz pro!
Help!! I have been trying to install it, as suggested and get this message:
I have looked up instructions as mentioned and it just takes me to the original page with same instructions. Why isn't it working??
Any help is much appreciated!
I solved my own issue. I was able to find help here https://lightrun.com/answers/facebook-create-react-app-create-react-app-stuck-on-v403-cannot-create-a-new-app and fixed by running command: npx create-react-app@5.0.1 app-name
I'll leave this here in case this can help anyone else with the same issue.
Thanks @angv2852 That helps!
For everybody who had or may have a problem with installation, here is one example of a solution
https://stackoverflow.com/questions/70358474/error-while-creating-new-react-app-you-are-running-create-react-app-4-0-3-w
tepki uygulamasını yükledikten sonra da bu sorunla karşılaşıyorum
olaylar.js:292 fırlatma er; // İşlenmeyen 'hata' olayı ^
] } npm HATA! kod ELIFECYCLE npm HATA! hata 1 npm HATA! my-app@0.1.0 başlangıç:
react-scripts start
npm HATA! Çıkış durumu 1 npm ERR! npm HATA! my-app@0.1.0 başlangıç komut dosyasında başarısız oldu. npm HATA! Bu muhtemelen npm ile ilgili bir sorun değildir. Yukarıda muhtemelen ek günlük kaydı çıktısı vardırnpm HATA! Bu çalıştırmanın tam bir günlüğü şurada bulunabilir: npm ERR! C:\Users\Arif\AppData\Roaming\npm-cache_logs\2020-07-06T04_51_26_637Z-debug.log Not C:\Users\Arif\my-app>
@rimjhim07 Thank you so much!!! it worked for me
Thank you :)
- npm install create-react-app
thanks
Yes
👍
Nice 🙂
Thanks
npx create-react-app my-app cd my-app npm start
### I am getting this error:
up to date, audited 76 packages in 2s
2 packages are looking for funding
run npm fund
for details
3 high severity vulnerabilities
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit
for details.
Thanks a lot for this post, Its help
Hi
hii
For everybody who had or may have a problem with installation, here is one example of a solution https://stackoverflow.com/questions/70358474/error-while-creating-new-react-app-you-are-running-create-react-app-4-0-3-w
It works for me. Thanks😇
Try this one if your npm is 6+
npm init react-app my-app
npm init is available in npm 6+
The problems listed above aren't all that serious. This is taking place as a result of an upgrade to the react version.
Try this code
npm init react-app my-app or npm create-react-app my-app
cd my-app
npm start
Gteat
Please use this code
npm create-react-app my-app
cd my-app
npm start
For everybody who had or may have a problem with installation, here is one example of a solution https://stackoverflow.com/questions/70358474/error-while-creating-new-react-app-you-are-running-create-react-app-4-0-3-w
It works for me. Thanks😇
thanks
*{[("app.eth")]}
running "npm install -g create-react-app my-app" kinda defeats the purpose of using npx don't you think? Because i shouldn't have to install the create-react-app package to my machine first, npx should be able to fetch the package from npm's remote package library right? Don't know why my npx works for other packages but not the create-react-app one