1

I am actually trying to run sudo npm -g install bower but my mac does not let me run anything that has npm on it. The error is

Error: EPERM: operation not permitted, mkdir '/usr/ps2791'

See the picture below.

Error Screenshot

Alexander Farber
  • 19,827
  • 73
  • 224
  • 393

2 Answers2

0

Are you using latest Mac OSX > 10.10? because all the MAC OSX has SIP enabled by default. In order to make use of npm command. Disable SIP on mac os.

0

According to this answer you might need to set the npm prefix to a directory that your user can actually fiddle with. I.e.

mkdir ~/npm_config
npm config set prefix ~/npm_config
Community
  • 1
  • 1
Tamas Rev
  • 6,728
  • 5
  • 31
  • 49