[英]How fix rails errors installation?
When Running this command运行此命令时
rails new test --api
I found this error我发现了这个错误
/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/railties-6.0.2.1/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt:10: syntax error, unexpected ')', expecting end-of-input (SyntaxError)); if spring_install?
what is the solution??解决办法是什么??
this error face in 2.5.0 version , so you can install ruby 2.5.3这个错误在 2.5.0 版本中出现,所以你可以安装 ruby 2.5.3
rbenv install -l
this will tell you the versions of ruby like that这会告诉你 ruby 的版本
2.5.0
2.5.1
2.5.2
2.5.3
2.5.4
2.5.5
2.5.6
2.5.7
then run this然后运行这个
rbenv install 2.5.3
rbenv global 2.5.3
gem install rails
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.