question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

eslint --init Command not found

See original GitHub issue

Hi! 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:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

39reactions
iaravindreddypcommented, Jun 2, 2018

in your project folder run ./node_modules/.bin/eslint --init which worked for me

4reactions
nzakascommented, Sep 18, 2018

This 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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found