react-native 引入某些低三方库时出现的Command `run-android` unrecognized,命令不识别错误

 

npm install react-native-swiper --save

再次运行react-native run-android时直接报Command run-Android unrecognized. Make sure that you have run npm install and that you are inside a React-native project. 
执行下面命令解决。

yarn add react-native-cli

 

posted @ 2018-07-02 11:16  纸鸢&红豆·绿豆  阅读(616)  评论(0编辑  收藏  举报