[Ruby] What to do if Operation not permitted is displayed when a command is executed in the terminal

less than 1 minute read

Create rails intermediate tutorial application

In the middle of, I tried to route to the top page, create a controller, and execute rails s,


Operation not permitted

And the error message is displayed.


System Preferences → Security & Privacy → Privacy → Select Full Disk Access from the line on the left → Check the terminal.

I was able to solve this by restarting the terminal.

Reference site