RN:运行了某些npm命令启动不起来问题

今天安装第三方插件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,项目又跑起来了!

你可能感兴趣的:(RN:运行了某些npm命令启动不起来问题)