[英]'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我试图创建 React 项目但 create-react-app my-app 命令不起作用..请帮助
here is command这是命令
npm install -g create-react-app npm install -g create-react-app
create-react-app my-app创建反应应用程序我的应用程序
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.为什么截图是 2017 年 12 月 25 日的。你需要重新安装最新版本的 node 并尝试最新版本的 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如果您的节点版本为 8 或更高,则使用 8
'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. 'npx create-react-app my-app'在上面的版本中我们只需要改变一个词就是npx就不需要做其他的事情了。 I hope this will help you我希望这会帮助你
May be your npm is not in your environment variable path.可能是您的 npm 不在您的环境变量路径中。 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
.也许您可以尝试react-native init
而不是create-react-app
。 Like react-native init my-app
像react-native init my-app
你可以试试
npx create-react-app bla-bla
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.