项目背景:安装三方库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
解决react-native-tab-navigator安装问题
1827

被折叠的 条评论
为什么被折叠?



