+ 1

npx create-react-app . --template typescript NOT WORKING

The above command to configure typescript isn't working. It started the installation, then aborted and deleted the files. I've attached the screenshot here for further details : https://www.sololearn.com/post/1743660/?ref=app Also, for the version, I ran the following command: npx create-react-app --version 5.0.1

5th Sep 2023, 4:49 AM
Asha
Asha - avatar
3 Respuestas
+ 1
well, there might be a few reasons for the problem. maybe you have an outdated versions of nodejs and npm, or cached data during package installations, so try clean the npm cache:'' nmp cache clean --force '', or something else .. If you still encountering issues use Yarn as an alternative package manager
6th Sep 2023, 6:51 PM
Amine Laaboudi
Amine Laaboudi - avatar
+ 1
in some case unstable internet connection may cause the same problem, so make sure you not experiencing some net interruptions
6th Sep 2023, 6:56 PM
Amine Laaboudi
Amine Laaboudi - avatar
+ 1
Amine Laaboudi thank you, issue was indeed slow internet connection. I'll keep other reasons you mentioned in mind as well.
7th Sep 2023, 3:34 AM
Asha
Asha - avatar