create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

React JS

Open ValM79 opened this issue 1 year ago • 4 comments

C:\Users\valer\Desktop\react-kabzda-kak-prosto\01-first-project>npx create-react-app my-app 'npx' is not recognized as an internal or external command, operable program or batch file.

ValM79 avatar Jul 16 '24 22:07 ValM79

Can't install React JS.

ValM79 avatar Jul 16 '24 22:07 ValM79

Do you have node installed in your system?

check using cmd:

node -v

niranjan404 avatar Jul 17 '24 07:07 niranjan404

It seems like npx is not recognized because Node.js and npm might not be installed properly on your system. First, check if Node.js is installed by running node -v in your command prompt. If you don't see a version number, download and install Node.js. After installation, verify npm with npm -v. Then, try running npx create-react-app my-app again. If you continue to have issues, please share the output of node -v and npm -v.

arashghezavati avatar Jul 18 '24 01:07 arashghezavati

Please follow these steps:-

  • Install Node.js and npm:

Download from nodejs.org (LTS version).

Could you ensure that the PATH environment variable includes the directory where Node.js and npm are installed?

  • Verify Installation:

Run in Command Prompt node -v npm -v

  • Update npm (if needed

Run in command Prompt npm install -g npm

  • Create React App:

Run in Command Prompt npx create-react-app my-app

bharat407 avatar Jul 19 '24 16:07 bharat407