React Native项目初始化异常求助:ffi gem安装验证失败问题
React Native初始化失败:已安装ffi 1.15.5但bundle install仍提示未安装
问题描述
执行npx react-native init projectname时,项目仅完成部分创建;后续运行bundle install时出现以下报错:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.An error occurred while installing ffi (1.15.5), and Bundler cannot continue. Make sure that "gem install ffi -v '1.15.5' --source 'https://rubygems.org/'" succeeds before bundling.
我已经通过gem install ffi -v '1.15.5' --source 'https://rubygems.org/'成功安装了指定版本的ffi,但再次运行bundle install时系统仍然提示未安装该版本,导致项目无法正常启动。
已尝试操作
- 手动安装ffi 1.15.5版本,安装过程无报错
- 重新执行
npx react-native init,问题依旧
恳请各位提供可行的解决方案。
内容的提问来源于stack exchange,提问作者5ecured
相关产品推荐
相关产品推荐

