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` failed

See original GitHub issue

Tell us about your environment

  • ESLint Version: 5.16.0
  • Node Version: v10.16.0
  • npm Version: 6.9.0

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

$ npx eslint --init
? How would you like to use ESLint? To check syntax, find problems, and enforce code style
? What type of modules does your project use? JavaScript modules (import/export)
? Which framework does your project use? React
? Where does your code run? (Press <space> to select, <a> to toggle all, <i> to invert selection)Browser
? How would you like to define a style for your project? Answer questions about your style
? What format do you want your config file to be in? JavaScript
? What style of indentation do you use? (Use arrow keys)
❯ Tabs
  Spaces

What did you expect to happen?

ESLint inits successfully.

What actually happened? Please include the actual, raw output from ESLint.

No more response when I wanna choose Spaces. The whole terminal was just dead. Even I press control+c, it doesn’t respond.

Are you willing to submit a pull request to fix this bug?

No idea.

Issue Analytics

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

github_iconTop GitHub Comments

8reactions
lehainam-devcommented, Jun 20, 2019

I experienced the same error. Stuck at Would you like to install them now with npm? (Y/n) (nothing happen when press keys, even Ctrl + C).

  • OS: MacOS Mojave
  • ESLint Version: 5.16.0
  • Node Version: v10.15.3
  • npm Version: 6.9.0
2reactions
mysticateacommented, Jun 21, 2019

Hi. This has been identified as an upstream bug: https://github.com/SBoudrias/Inquirer.js/issues/811

Please wait for the upstream fix.

A workaround, for now, is to install the previous version of inquirer manually:

npm install inquirer@6.3
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix 'eslint --init fails'? - Stack Overflow
This is for Mac, node v10.10.0,npm 6.4.1 eslint --init ? How would you like to use ESLint? To check syntax, find problems, and...
Read more >
eslint/eslint - Gitter
However, as soon as I run eslint --init and tell the configuration utility to setup eslint ... Failed to load parser '@typescript-eslint/parser' declared...
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 >
eslint-config-standard - npm
npx eslint --init; Select "Use a popular style guide." Select "Standard." Select a config file format. If prompted, confirm the installation ...
Read more >
Parsing error: Unexpected token for Eslint --init - Google Groups
Hi Marina, It looks like it's failing to install eslint-plugin-react. Can you try answering “no” for that question and see if you can...
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