eslint --init Command not found
See original GitHub issueHi!
I want to set globally the module settings for all projects.
I try:
npm install -g eslint
After I enter:
eslint --init
And after that I see:
eslint: command not found
Tell me, please, what is my mistake?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:8 (2 by maintainers)
Top Results From Across the Web
ESlint Error Install from Command Line - Stack Overflow
For: Zsh: command not found: eslint npm install eslint-plugin-react-hooks --save --dev. then run: npm install -g eslint. It should work.
Read more >ESLint is installed, but I encounter `bash: eslint: command not ...
Try running npx eslint -v . npx is a utility for running command-line commands from stuff you have installed in node_modules. If it...
Read more >Getting Started with ESLint - Pluggable JavaScript Linter
ESLint is a tool for identifying and reporting on patterns found in ECMAScript/JavaScript code, with the goal of making code more consistent and...
Read more >Fix 'eslint: command not found' in Linux | Programmer Hat
The most probable solution to fixing the “eslint: command not found” error message is to simply install the eslint command on your Linux...
Read more >ESLint - npm
Make sure your plugins (and ESLint) are both in your project's package. · Make sure you have run npm install and all your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
in your project folder run
./node_modules/.bin/eslint --init
which worked for meThis is definitely an installation issue. The most likely problem is that your
PATH
environment variable does not contain the global npm folder.As this is a question rather than an action item, I’m closing the issue. If you still need help, please send a message to our mailing list or chatroom. Thanks!