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.

Running `eslint --init` doesn't work

See original GitHub issue

So I’ve installed eslint today (v1.5) and trying to get started with it. I installed with npm install -g eslint then I ran eslint --init I’m then displayed with

? What style of indentation do you use? (Use arrow keys) Tabs Spaces

Arrow keys are unresponsive and pressing enter quits the process and returns me to the command prompt, also no file is created. If I type something then it appears next to the spaces choice.

I’m on Windows 10, using Node v4.0.0 not sure if that matters.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
dmalshincommented, Sep 22, 2016

I have the issue in Git Bash. But interactive functionality works in Windows PowerShell.

0reactions
varunchandran333commented, Jan 30, 2018

**_root@varunchandran:~# npm install -g eslint /home/varun/.npm-global/bin/eslint -> /home/varun/.npm-global/lib/node_modules/eslint/bin/eslint.js

  • eslint@4.16.0 added 138 packages in 22.077s_**

After this…

when i try eslint --init , it shows

No command ‘eslint’ found,

did you mean: Command ‘nslint’ from package ‘nslint’ (universe) eslint: command not found

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - ESLint is not working? - Stack Overflow
Project Directory: node node_modules\eslint\bin\eslint.js --init ... Run the command npm run lint in terminal and it should start working.
Read more >
Getting Started with ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
VS Code ESLint extension - Visual Studio Marketplace
You can do this by either using the VS Code command Create ESLint configuration or by running the eslint command in a terminal....
Read more >
eslint - npm
A bug fix in a rule that results in ESLint reporting more linting errors. A new rule is created. A new option to...
Read more >
ESLint 8.0: doesn't work with YarnPnP : WEB-52594 - YouTrack
The plugin does not correctly detect the presence of the eslint package, because it uses some kind of heuristic mechanism instead of interacting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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