所以我使用vagrant作为虚拟环境,因为我在windows中编程,每当我尝试捆绑安装时,我都会收到这样的错误:
`Gem::FilePermissionError: You don't have write permissions for the /usr/local/rvm/gems/ruby-2.2.3/wrappers directory.
An error occurred while installing rake (11.2.2), and Bundler cannot continue.
Make sure that `gem install rake -v '11.2.2'` succeeds before bundling.`
然后我尝试gem install rake
这就出现了:
`ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/local/rvm/gems/ruby-2.2.3 directory.`
我认为sudo gem install rake
可能有效,但我仍然无法成功捆绑。请帮助这会破坏我的环境。
答案 0 :(得分:0)
您对gems
文件夹没有权限,请尝试使用非常宽松的配置,因为它是本地虚拟机:
sudo chmod -R 777 /usr/local/rvm/gems/ruby-2.2.3
此配置不安全,但很可能会解决您的问题。