npx react-native run-android在0.61版本中不起作用

时间:2020-02-10 11:45:26

标签: react-native react-native-android

从今天开始,我在运行项目..commandPrompt时遇到这样的错误。.

E:\FirstProject>npx react-native run-android
error Unrecognized command "run-android".
info Run "react-native --help" to see a list of all available commands.

1 个答案:

答案 0 :(得分:1)

只需打开两个终端控制台并运行

react-native start

和另一个

react-native run-android

我认为npx只能使用react native cli创建init项目

https://facebook.github.io/react-native/docs/getting-started