Cannot run my main.rb anymore
I was practicing ruby this afternoon, and then it suddenly showed the error message below. Now I cannot Run my main.rb anymore. Can anyone help me fix this?
The console shows the message below:
warning: parser/current is loading parser/ruby25, which recognizes
warning: 2.5.8-compliant syntax, but you are running 2.5.1.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
(string):1:7: error: unexpected token tEQL
(string):1: :name = "123" # 語法錯誤
process': unexpected token tEQL (Parser::SyntaxError)
from -e:57:inblock in <main>'
exit status 1
It looks like that package you are trying to install was built using a higher version (2.5.8), while repl.it currently uses 2.5.5. Maybe that is in relation to the issue.