已解决

Mac修改默认的ruby版本

2020-05-06  本文已影响0人  虫yu
$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]

$ which -a ruby
/usr/bin/ruby
$ export PATH="/usr/local/opt/ruby/bin:$PATH"
$ which -a ruby
/usr/local/opt/ruby/bin/ruby
/usr/bin/ruby

$ ruby -v
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin19]
上一篇下一篇

猜你喜欢

热点阅读