問題:java
Gem::InstallError: rubyzip requires Ruby version >= 2.4.
An error occurred while installing rubyzip (2.0.0), and Bundler cannot continue.
Make sure that `gem install rubyzip -v '2.0.0'` succeeds before bundling.git
緣由: 本地ruby版本太低,須要更新ruby版本 >= 2.4github
解決方案(mac),經過rvm更新ruby版本,更新完就能夠啦~_~api
1. 安裝rvm,在命令行裏執行如下步驟:ruby
(1)curl -L get.rvm.io | bash -s stablebash
若是出現鏈接錯誤,檢查網絡,代理狀態(git, yarn..)網絡
ZZZs-Mac:~ rhino$ curl -L get.rvm.io | bash -s stable % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 194 100 194 0 0 103 0 0:00:01 0:00:01 --:--:-- 103 100 24535 100 24535 0 0 7553 0 0:00:03 0:00:03 --:--:-- 56272 Downloading https://github.com/rvm/rvm/archive/1.29.9.tar.gz Downloading https://github.com/rvm/rvm/releases/download/1.29.9/1.29.9.tar.gz.asc Found PGP signature at: 'https://github.com/rvm/rvm/releases/download/1.29.9/1.29.9.tar.gz.asc', but no GPG software exists to validate it, skipping. Upgrading the RVM installation in /Users/rhino/.rvm/
(2)source ~/.rvm/scripts/rvmcurl
(3)echo "ruby_url=https://cache.ruby-china.org/pub/ruby" > ~/.rvm/user/dbui
(4)rvm -vthis
ZZZs-Mac:~ rhino$ rvm -v rvm 1.29.9 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
2. 安裝或者更新ruby(關閉本地yarn, git之類的代理)
rvm install 2.6.0
ZZZs-Mac:~ rhino$ rvm install 2.6.0 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.14/x86_64/ruby-2.6.0. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx. Installing requirements for osx. Updating system................................................................- Installing required packages: zlib.. ==> Upgrading 4 outdated packages: automake 1.15.1 -> 1.16.1_1 coreutils 8.28_1 -> 8.31 libyaml 0.1.7 -> 0.2.2 readline 7.0.3_1 -> 8.0.1 ==> Upgrading readline ==> Downloading https://homebrew.bintray.com/bottles/readline-8.0.1.mojave.bottl ==> Downloading from https://akamai.bintray.com/3c/3c754391e9d243835811d128771ca ######################################################################## 100.0% ==> Pouring readline-8.0.1.mojave.bottle.tar.gz ==> Caveats ...