-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Create-react app #8338
Comments
can you please explain what exactly is not working in your case?? Even I was facing this issue where only package.json and node_modules was getting created but not the CRA template and that is why I came here to check if anyone else is facing the same. then I read this message
so I upgraded the create-react-app version to 3.3.0 and tried to create the new app and it worked 😃 Try upgrading the package and it might work. |
How do I check the version and update it on my phpstorm to work fine. |
"C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npx-cli.js" create-react-app . Creating a new React app in C:\Users\Gustine\PhpstormProjects\untitled1. Installing packages. This might take a couple of minutes. npm ERR! Unexpected end of JSON input while parsing near '..."unpackedSize":17505,' npm ERR! A complete log of this run can be found in: Aborting installation. Deleting generated file... package.json it can't create package.json file |
Hi @Austinmac56 I think you have not added node's bin path in Environment variable that is why you have to give the whole path to run npm commands, follow this stackoverflow answer to set it. To answer your actual questions to check the version Now to create your react app just type |
looks like there may be a problem i just ran npx create-react-app and the same as above my package.json ends up looking like
|
hi @cgibsonmm and @welitonderesende , You can refer to the previous comment here to update the package if it's already not the latest one. It might just fix your error here as I had the same issue. |
I solved my problem already. |
Yeah, this was the issue for me was also.
…On Wed, Jan 22, 2020 at 8:14 AM Austinmac56 ***@***.***> wrote:
I solved my problem already.
I uninstalled node.js then deleted npm and npm cache.
I also went to user/Gustine/appdata and deleted Nodejs and npm modules.
Reinstall Nodejs and initiate react app creation in your editor terminal.
Hope it works for you
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8338?email_source=notifications&email_token=AC5BC6GCBSYDJETDLAH2RQTQ7BBE3A5CNFSM4KITKDZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJTQEBQ#issuecomment-577176070>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC5BC6B2QMTI3AYGH73WD63Q7BBE3ANCNFSM4KITKDZQ>
.
|
My laptop can't create a react app after following the processes
The text was updated successfully, but these errors were encountered: