在获取rack-2.0.1.gem后出现错误



我试图在我的终端做一个gem update,但得到一个错误:

Updating installed gems
Updating actionpack
Fetching: activesupport-5.0.0.gem (100%)
Successfully installed activesupport-5.0.0
Fetching: rack-2.0.1.gem (100%)
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied @ rb_sysopen - /Users/MacBook/.rvm/gems/ruby-2.3.1@global/wrappers/rackup

谁能帮助我为什么得到这个?

如果有人想知道,我想我只需要给予许可,为了做到这一点,只需在前面添加sudo命令,即:

$ sudo gem update

最新更新