[英]RVM won't create gemset for a new project
RVM
doesn't seem to be automagically creating a new gemset
for a newly cloned git
based rails
project as it did for other projects when cd
ing into the project folder. 当
cd
进入项目文件夹时, RVM
似乎并没有像其他项目那样为新克隆的基于git
的rails
项目自动创建新的gemset
。 I get this message: 我收到此消息:
ruby-2.2.4 is not installed.
I am using ruby-2.3.1
and have set it as the default and that is the only ruby
version I installed using rvm
. 我正在使用
ruby-2.3.1
并将其设置为默认值,这是我使用rvm
安装的唯一ruby
版本。 Why am I getting that error message? 为什么会收到该错误消息? I am on a
MAC
(Sierra OS) if that matters. 如果重要的话,我使用的是
MAC
(Sierra OS)。
It started happening randomly as soon as I cloned a new project. 我克隆一个新项目后,它便开始随机发生。 I don't see
ruby-2.2.4
being mentioned in the gemfile
or the gemspec
. 我看不到
gemfile
或gemspec
提到ruby-2.2.4
。 Where is it picking it from? 它是从哪里捡来的?
If you paste the whole error message you get when trying to run bundle install
it'll be easier to say for certain, but I'm assuming one of the gems in your gemfile requires Ruby version 2.2.4. 如果粘贴尝试运行
bundle install
时收到的全部错误消息,可以肯定地说起来会容易一些,但是我假设gemfile中的gem之一需要Ruby 2.2.4版。
Just type in 只需输入
rvm install 2.2.4
Then run bundle install
again and all should be well, assuming no other errors. 然后再次运行
bundle install
,假设没有其他错误,一切应该一切正常。
You may need to switch which version of Ruby you're using based on which project you're in, just use 您可能需要根据所在的项目来切换使用的Ruby版本,只需使用
rvm use 2.4.0
rvm use 2.2.4
etc. 等等
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.