Answer the question
In order to leave comments, you need to log in
Why can't I start eslint?
As I read in the documentation, to install globally, you need to $ npm install -g eslint
, and then you need to configure the eslint --init configuration file, and so I get an error,
"eslint" is not an internal or external
command, executable program or batch file.
How to set the configuration?
Answer the question
In order to leave comments, you need to log in
The question was more than a year ago, but anyway - for others:
I also had such an error, but if I sequentially enter "npm install" in the Visual Studio Code terminal, then "npm run lint" (to check linting) or "npm test" (to pass the test), then everything works without problems.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question