Nếu bị lỗi version Ruby thì có thể cài đặt Ruby 2.7.0 theo script sau:
1 2 3 4 5 6 7 8 9 10 11 12
#Install rbenv and add it to .zshrc cd git clone git://github.com/sstephenson/rbenv.git .rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc echo 'eval "$(rbenv init -)"' >> ~/.zshrc git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build source ~/.zshrc rbenv install 2.7.0 rbenv local 2.7.0 #or rbenv global 2.7.0 if want to set it globally rbenv rehash