admin管理员组文章数量:1356941
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
本文标签:
版权声明:本文标题:javascript - 'create-react-app' is not recognized as an internal or external command or operable program or batc 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743950661a2567230.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论