Eslint does not run on Mac

0

I'm using VS Code in MacOS 10.14.1

I installed eslint with the command:

npm i -g eslint

It is installed in the project's local folder:

./node_modules/eslint

When you run the command:

eslint --init

Error:

-bash: eslint: command not found

I've already researched and nothing. Can someone help me?

    
asked by anonymous 21.11.2018 / 23:50

0 answers