React Js Installation: Please i need help!

Hey guys !! I hope everyone doing well , please i need your help , i so confusing with React when i create new project by Terminal in VSCode . Any suggestions .
The error >>>>

Did you use create-react-app? If not, instructions are here:

So try using:
npx create-react-app my-app

Then you can edit that project.

1 Like

Yeah , i used already (create-react-app project-name) , but i don’t know why i get error

Not sure but make sure that Node is version 10+ (node -v) and that you have a new version of npm/npx and that you don’t have this issue with create-react-app installation:

If you’ve previously installed create-react-app globally via npm install -g create-react-app , we recommend you uninstall the package using npm uninstall -g create-react-app or yarn global remove create-react-app to ensure that npx always uses the latest version.

Also make sure to type “npx create-react-app app-name”

1 Like

Hey !!
I don’t know why i get this error , i uninstall Create-react-app , and i install it again , but no change , i still getting the errors:

npm ERR! Unexpected end of JSON input while parsing near ‘…h":"^0.1.4","inquirer’

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mac/.npm/_logs/2020-12-04T11_21_25_361Z-debug.log

Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

If you type in your error msg in your google search you will come across some stack-overflow discussions saying it could be related to the cache or possibly a poor wifi connection. You can always try those suggestions (npm cache clean --force). Or another option would be to try using yarn package manager instead of npm.

1 Like

A big thanks to you brother !!! :sparkling_heart: :sparkling_heart: :sparkling_heart:

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.