Having trouble installing ESlint globally on my Mac running Mojave 10.14.6. Every time I try to run 'npm install -g eslint' I keep encountering this error:
Your operating system has rejected the operation.
npm ERR! It seems that you lack the necessary permissions to access this file as the current user
npm ERR!
npm ERR! If you suspect a permissions issue, please verify the
npm ERR! permissions of the file and its parent directories, or attempt to run
npm ERR! the command again with root/Administrator privileges (although this is not recommended).
Is there a way to run the terminal with root/admin permissions?