简体   繁体   English

“create-react-app”不是内部或外部命令,也不是可运行的程序或批处理文件

[英]'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创建反应应用程序我的应用程序

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.为什么截图是 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-appreact-native init my-app

你可以试试

npx create-react-app bla-bla

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 'cocos'不被识别为内部或外部命令,可操作程序或批处理文件 - 'cocos' is not recognized as an internal or external command, operable program or batch file '。' 不被识别为内部或外部命令,可操作程序或批处理文件 - '.' is not recognized as an internal or external command, operable program or batch file '' 不被识别为内部或外部命令,可操作程序或批处理文件 - '.' is not recognized as an internal or external command, operable program or batch file 'express' 不是内部或外部命令,也不是可运行的程序或批处理文件 - 'express' is not recognized as an internal or external command, operable program or batch file 'lightercollective' 不是内部或外部命令,也不是可运行的程序或批处理文件 - 'lightercollective' is not recognized as an internal or external command, operable program or batch file 无法将“ nodemon”识别为内部或外部命令,可操作程序或批处理文件 - 'nodemon' is not recognized as an internal or external command, operable program or batch file 无法将“节点”识别为内部或外部命令,可操作程序或批处理文件 - 'node' is not recognized as an internal or external command, operable program or batch file 'firebase' 不是内部或外部命令,也不是可运行的程序或批处理文件 - 'firebase' is not recognized as an internal or external command, operable program or batch file 'CI' 不是内部或外部命令,也不是可运行的程序 或批处理文件 - 'CI' is not recognized as an internal or external command, operable program or batch file 'react-scripts' 未被识别为内部或外部命令、可运行程序或批处理文件 - 2022 - 'react-scripts' is not recognized as an internal or external command, operable program or batch file - 2022
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM