简体   繁体   中英

'create-react-app' is not recognized as an internal or external command or operable program or batch file

I tried to create React Project but create-react-app my-app command is not working..please help

here is command

npm install -g create-react-app

create-react-app my-app

here is screenshort of my commands

Why is the screenshot dating back 25 Dec 2017. You need to re install the latest version of node and try latest version of React.

npm install -g npm-windows-upgrade
npm-windows-upgrade

Then do

npm install -g create-react-app
create-react-app my-app

First Check your Node version. if your node version is 8 or greater then 8 then use
'npx create-react-app my-app' In the above version we need to change only one word that is npx You don't need to do another things. I hope this will help you

May be your npm is not in your environment variable path. Please try

npx create-react-app my-app

check this and run this:

npm install create-react-app

npx create-react-app my

maybe you can try react-native init instead of create-react-app . Like react-native init my-app

你可以试试

npx create-react-app bla-bla

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM