今天安装第三方插件swiper
$ npm install react-native-swiper --save
$ npm i react-timer-mixin --save
后运行RN项目,出现如下错误:
Command `run-android` unrecognized. Make sure that you have run `npm install` and that you are
解决方法很简单,按照他的提示,cd到项目根目录,执行npm install
然后ok,项目又跑起来了!