本文介绍了'create-react-native-app' 不是内部或外部命令、可运行程序或批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我想创建一个反应原生应用程序我收到此错误create-react-native-app"在运行 create-react-native-app 时无法识别为内部或外部命令、可运行程序或批处理文件我也尝试过 react-native, expo 但同样的错误发生了.
So I want to create a react native application I am getting this error 'create-react-native-app' is not recognized as an internal or external command, operable program or batch file on running create-react-native-app and I also tried react-native, expo but the same error occurs.
推荐答案如果你用的是 react-native>=63.0 可以试试
if you're using react-native>=63.0 you can try
$ npx create-react-native {project_name}或
$ npm i -g create-react-native-app $ create-react-native-app {my-project} $ cd my-project $ npm start或者只是
$ npx react-native init {project_name}更多推荐
'create
发布评论