Installed ES Lint globally but getting error -bash: eslint: command not found

1.8k Views Asked by At

I am on a mac using Catalina. I installed ES Lint globally using

npm install -g eslint

the output says

/usr/local/opt/nvm/versions/node/v10.13.0/bin/eslint -> /usr/local/opt/nvm/versions/node/v10.13.0/lib/node_modules/eslint/bin/eslint.js
+ [email protected]

However I am confused because I made sure to use nvm uninstall node v10.13.0. Then I downloaded the latest install from the node website and installed it. when I do node -v I get

v12.18.4

Why is it still installing ESlint it to the old 10.13.0 directory?

0

There are 0 best solutions below