ruby is already installed but outdated (so it will be upgraded). Error: The following directories are not writable by your user: /usr/local/bin /usr/local/lib
You should change the ownership of these directories to your user. sudo chown -R $(whoami) /usr/local/bin /usr/local/lib
And make sure that your user has write permission. chmod u+w /usr/local/bin /usr/local/lib ✘ admin@MacBook-Pro ~ sudo chown -R $(whoami) /usr/local/*
sudo chown -R $(whoami) /usr/local/* 使用自己此命令 执行 即可