rbenv Your user account isn't allowed to install to the system Rubygems

 

Clone一个新Rails项目到Mac, bundle install 的时候遇到下面的提示ruby

 

Fetching source index from http://rubygems.org/ Your user account isn't allowed to install to the system Rubygems. You can cancel this installation and run: bundle install --path vendor/bundle to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to Rubygems using sudo. Password:this

 

也就是说,rbenv 要往你系统的自带Ruby里面安装gem.spa

gem list | grep bundler

用上面的命令看看你是否经过rbenv安装了bundler. 若是没有那就对了,因此只能去找系统的ruby了,那么你可能不但愿这样。blog

因此解决办法已经明了:hash

gem install bundler
rbenv rehash
相关文章
相关标签/搜索