I tried to create React Project but create-react-app my-app mand is not working..please help
here is mand
npm install -g create-react-app
create-react-app my-app
here is screenshort of my mands
I tried to create React Project but create-react-app my-app mand is not working..please help
here is mand
npm install -g create-react-app
create-react-app my-app
here is screenshort of my mands
Share Improve this question edited Dec 25, 2017 at 16:21 AmiBuddy asked Dec 25, 2017 at 15:46 AmiBuddyAmiBuddy 111 silver badge2 bronze badges 5- please add your mands as code block in here and not as link. – Johannes Merz Commented Dec 25, 2017 at 16:11
- Did you try googling it? Seems a very mon error on Windows and very simple to solve. – Tiago Alves Commented Dec 25, 2017 at 16:12
- yes i googling but i failed to solve the problem then i submit the question here.. – AmiBuddy Commented Dec 25, 2017 at 16:22
-
Please check if
C:\User\<your user id>\AppData\Roaming\npm
in your %PATH%. – sayboras Commented Dec 25, 2017 at 17:21 - yes i gave the path variable.. – AmiBuddy Commented Dec 26, 2017 at 15:41
6 Answers
Reset to default 5Why 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
check this and run this:
npm install create-react-app
npx create-react-app my
May be your npm is not in your environment variable path. Please try
npx create-react-app my-app
maybe you can try react-native init
instead of create-react-app
.
Like react-native init my-app
you can try
npx create-react-app bla-bla