文章目录
  1. 1. 错误提示
  2. 2. 解决办法

错误提示

今天在新建项目rails new XXX 时出现了如下错误提示。

1
2
3
4
5
he i18n gem is not available. Please add it to your Gemfile and run bundle install
/Users/liuzheng/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:2278:in `check_version_conflict': can't activate activesupport-5.0.6, already activated activesupport-5.0.5 (Gem::LoadError)
from /Users/liuzheng/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb:1404:in `activate'
from /Users/liuzheng/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:89:in `block in require'
......

解决办法

我尝试输入rails -v发现出现相同的错误提示。

于是重新安装了 rails并更新了gem。问题得以解决。

文章目录
  1. 1. 错误提示
  2. 2. 解决办法