The solution to this problem shouldn't have to be installing `estlint` globally. If `eslint` is installed in the project locally then the IDE should be able to find the path to it.
Installing ESLint globally is not actually recommended. If local package is not detected automatically, try changing the configuration to Manual and specify the package path explicitly.
If this doesn't work, check your Node.js preferences in Settings | Languages & Frameworks | Node.js
Everyone, it's very important to pay attention to the dependency installing. Check the dependencies of your projects, sometimes, when you install a new dependency, it may require a more up-to-date ESLint version. It's not recommended to install ESLint globally.
I recently had this issue in a project where I had to update ESLint from version 4.3 to 6.7. However, there's a tip: when you update Eslint on IntelliJ, it doesn't automatically update the ESLint configuration. So, you need to restart the IDE for the ESLint update to work. Once you've done that, ESLint should work correctly. Don't install random dependencies and make sure to verify what your project needs!
Thiago Aquino Restarting also fixed it for me. I downgraded eslint for some reason and did not restart the IDE after that. So automatic config works now. It's a bit weird though. Should be a manual option to reload the eslint plugin/settings though as restarting the IDE is not what you would think of to fix the issue.
There is a third-party ESLint Restart Service Action plugin that allows re-starting the ESLint service on demand after modifying your settings, you can give it a try.
this is my package.json
Is the first error ("Please specify path to 'eslint' package") solved?
I have the same issue
Have you tried to install eslint globally and restart your IDE?
npm install --g eslint
Thanks Ali Sedighi, this fixed the error for me!
First, run `npm install --g eslint` on the terminal to install the package globally.
Make sure that the ES Lint settings are set to Automatic ES Lint Configuration
Now restart the IDE and see if the error disappears
Thanks Mutua Chris, that fixed it for me!
Thanks Muta Chris - that solved the issue
i tried the same and it still complains saying please specify a path....
Thanks Mutua Chris! That fixed it for me.
Installing ES Lint globally didn't work for me.
My problem was that the wrong version of Node was selected in my project settings. I selected the right version of Node and the problem went away.
remove node_modules and run install script
Installing eslint globally with yarn and restarting IDE resolved the issue
The solution to this problem shouldn't have to be installing `estlint` globally. If `eslint` is installed in the project locally then the IDE should be able to find the path to it.
Installing ESLint globally is not actually recommended. If local package is not detected automatically, try changing the configuration to Manual and specify the package path explicitly.
If this doesn't work, check your Node.js preferences in Settings | Languages & Frameworks | Node.js
Thanks Mutua Chris , that fixed it
Everyone, it's very important to pay attention to the dependency installing. Check the dependencies of your projects, sometimes, when you install a new dependency, it may require a more up-to-date ESLint version. It's not recommended to install ESLint globally.
I recently had this issue in a project where I had to update ESLint from version 4.3 to 6.7. However, there's a tip: when you update Eslint on IntelliJ, it doesn't automatically update the ESLint configuration. So, you need to restart the IDE for the ESLint update to work. Once you've done that, ESLint should work correctly. Don't install random dependencies and make sure to verify what your project needs!
Thiago Aquino Restarting also fixed it for me. I downgraded eslint for some reason and did not restart the IDE after that. So automatic config works now. It's a bit weird though. Should be a manual option to reload the eslint plugin/settings though as restarting the IDE is not what you would think of to fix the issue.
There is a third-party ESLint Restart Service Action plugin that allows re-starting the ESLint service on demand after modifying your settings, you can give it a try.