【Linux】gem安装权限问题

gem安装权限错误

  1. 错误提示:

You don’t have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

  1. 解决:

这个时候只需要在命令前加上sudo, 例:sudo gem update --system,sudo是获取管理员权限,输入该命令便可继续执行了。

猜你喜欢

转载自blog.csdn.net/m0_46537958/article/details/107360043