gem install rails ERROR: While executing gem … (Errno::EACCES)

前端 未结 3 777
暗喜
暗喜 2021-01-12 09:47

I somehow messed my $PATH up. (changed it) and my ruby and rails gems weren\'t working. What I did in efforts to fix this was to reinstall RVM. Now my ruby works fine in the

3条回答
  •  广开言路
    2021-01-12 10:11

    Like Dave pointed out up there, there should be no need to sudo any Gem installation. You could try to reset the permissions on your RVM directory:

    sudo chown -R emKaro: ~/.rvm/
    

    and try your Gem instllation again. If that doesn't work out, you should consider removing your RVM installation and start over:

    sudo rm -rf ~/.rvm/   # remove your RVM directory
    

    There should really be no need for using sudo in any of this.

提交回复
热议问题