reactnativecn / react-native-website

React Native 中文网
https://reactnative.cn
MIT License
219 stars 328 forks source link

大佬救命!!!按照官网文档,mac使用react-native 创建项目一直报错 `find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle #753

Closed wukongyang closed 8 months ago

wukongyang commented 1 year ago

Mac M1系统 ruby 版本 2.6.10p210 pod版本 1.12.1 node版本 v18.16.0 gem版本 3.4.19 使用 npx react-native@latest init AwesomeProject 命令创建项目,一直报错如下,终端执行 pod 命令是可以执行的

image
wukongyang commented 1 year ago

android 项目可以正常启动

sunnylqm commented 1 year ago

https://www.jianshu.com/p/fef4ce7d5fc8

wukongyang commented 1 year ago

https://www.jianshu.com/p/fef4ce7d5fc8

`find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException) 权限问题没有报错了。 还有这个问题,大佬

sunnylqm commented 1 year ago

有个东西叫搜索引擎,你问我我也是去搜

Entschuldigung commented 1 year ago

ruby版本更新下试试 $ rvm install ruby-3.1.4 --with-openssl-dir='brew --prefix openssl' $ rvm list ruby-2.7.6 [ arm64 ] ruby-2.7.8 [ arm64 ] =* ruby-3.1.4 [ arm64 ]

lemonkang commented 1 year ago

这个是依赖问题,不用理他正常开发项目

lemonkang commented 1 year ago
image

我在初始化项目也遇到这个问题 image

wukongyang commented 1 year ago

这个是依赖问题,不用理他正常开发项目

可是ios项目没法启动啊

SongBana commented 1 year ago

我也遇到了,不过不影响,重新启动,ios和android都可以运行

chenwenfeng commented 11 months ago

gem手动装一下试试

z-coder-hub commented 11 months ago

ruby和pod重新安装

github-actions[bot] commented 8 months ago

👋 Hey there, it looks like there has been no activity on this issue in the last 90 days. Has the issue been fixed, or does it still require the community attention? This issue will be closed in the next 7 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 8 months ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.