Open sarink opened 2 years ago
Where is eslint installed? Local node_modules or globally? This error is saying it doesn't exist in either location. Also note you are running a limited supported node version for Esling-Watch. In the past I've found bugs like this occur and resolve before LTS.
./node_modules/.bin/eslint
exists and is what I was thinking this package would use.
I just tried with node 16.13.2
, same result
It should look in your project node_modules and then global. Can you try invoking esw within the context of npx, package.json scripts or yarn?
I am experiencing the same problem.
you have to run it as
yarn run esw
or
npm run esw
I am not sure why this works but directly calling the executable doesn't, but probably something to do with node setting up env vars.
Wasn't working when running esw
directly installed by npm i -g esw
. It however worked when running it through npx esw
Environment
Basic Description of the problem
How to reproduce it
./node_modules/.bin/esw --help
Debug output: