ESlint глобальная ошибка установки корневого терминала Mac - PullRequest
0 голосов
/ 04 октября 2019

Я пытаюсь глобально установить ESlint на мой Mac под управлением Mojave 10.14.6, но каждый раз, когда я запускаю 'npm install -g eslint', я получаю эту ошибку:

The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator (though this is not recommended).

Есть лив любом случае запустить терминал с правами root / admin?

1 Ответ

0 голосов
/ 04 октября 2019

Вы пробовали sudo npm install -g eslint и вводите свой пароль?

...