Rails:rbenv rehash 不起作用(rbenv-shim 存在)



>我正在尝试在安装新 gem 后重新散列 rbenv它在我的 Ubuntu 服务器上给了我这些错误

 rbenv: cannot rehash: /home/deployer/.rbenv/shims/.rbenv-shim exists

但是.rbenv-shims不存在

可能是目录权限的问题 @ sstephenson/rbenv:

FWIW - 我也遇到了这个问题,并且不得不更改检查 .rbenv-shim 的目录的权限......所以它可以写信给目录,所以它停止抱怨。

另外,请尝试:

rm /home/deployer/.rbenv/shims/.rbenv-shim

并运行:

rbenv rehash

相关内容

最新更新