https://ruby-china.org/topics/40842
我跑起来了,感谢(安装就是一路回车,没怎么管拉取失败的错误)
另外我的环境遇到问题,提示:tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile and run bundle install
我的环境:
操作系统:win11
ruby版本:ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt]
rails版本:Rails 7.0.2.3
我是这样操作的:
1、修改 Gemfile
# gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
2、执行命令
gem uninstall tzinfo-data
3、修改 Gemfile
# gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]
gem "tzinfo-data"
4、重新安装依赖
bundle install
5、本地端口被占会提示权限错误,指定端口启动
rails s -p 888