This is what I'm trying to do on my mac: npm install eslint -g
And I get a EACCES: permission denied
with the following details:
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path: '/HOME/.node_modules_global/lib/node_modules/eslint/LICENSE' }
How can I install ESlint globally without using sudo
? Or should I use sudo
?