"Permission Denied" when trying to install ESlint on OSX globally

This is what I am trying to do on my mac: npm install eslint -g

And I get 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 to install ESLint globally without using sudo ? Or should I use sudo ?

0
source share
1 answer
+1
source

Source: https://habr.com/ru/post/1247930/


All Articles