Skip to main content

ERROR: While executing gem … (Errno::EPERM) Operation not permitted

In case you face an error as:

ERROR: While executing gem … (Errno::EPERM) Operation not permitted [duplicate] 

while updating or installing the gem(specially in EI Capitan), then we can do the following:

  1. Reboot your Mac into Recovery Mode by restarting your computer and holding down Command+R until the Apple logo appears on your screen.
  2. Click Utilities > Terminal.
  3. In the Terminal window, type in csrutil disable and press Enter.
  4. Restart your Mac.

Comments