项目背景:安装三方库react-native-tab-navigator
执行命令
npm install react-native-tab-navigator --save
出现错误
解决办法
第一步,执行
npm install --registry=https://registry.npm.taobao.org
第二步
npm cache clean --force
如果之后运行项目出现
Command start
unrecognized. Make sure that you have run npm install
and that you are inside a react-native project.
请执行
yarn add react-native-cli