How to install ESlint globally?

You can install Node modules within the project (locally) or globally. To switch to globally, you may use the -g flag, like so:

npm install -g eslint

Then see if it’s working without Sublime Text (-v flag to see the version of eslint):

eslint -v

To see where it was installed (assuming MacOS/Linux):

which eslint

Then see if it’s working in Sublime Text (you may need to restart Sublime first). If it’s not working, make sure in the eslint package settings that the path is correct.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)