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-config-standard@5.3.1 wants eslint@^2.0.0-rc.0

See original GitHub issue

Just tried to install eslint for the first time following the readme and I got the following errors with eslint --init choosing the standard config.

What version of ESLint are you using? 3.0.1

What parser (default, Babel-ESLint, etc.) are you using? default I assume?

Please show your full configuration:

{
    "extends": "standard",
    "plugins": [
        "standard"
    ]
}

What did you do? Please include the actual source code causing the issue. There actually wasn’t a β€˜npm-debug.log’ file in directory in spite of what the error message indicated.

What did you expect to happen? Successful --init

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

$ npm install --save-dev eslint
eslint@3.0.1 node_modules/eslint
β”œβ”€β”€ ignore@3.1.3
β”œβ”€β”€ pluralize@1.2.1
β”œβ”€β”€ path-is-inside@1.0.1
β”œβ”€β”€ imurmurhash@0.1.4
β”œβ”€β”€ estraverse@4.2.0
β”œβ”€β”€ strip-bom@3.0.0
β”œβ”€β”€ strip-json-comments@1.0.4
β”œβ”€β”€ globals@9.9.0
β”œβ”€β”€ esutils@2.0.2
β”œβ”€β”€ progress@1.1.8
β”œβ”€β”€ text-table@0.2.0
β”œβ”€β”€ user-home@2.0.0 (os-homedir@1.0.1)
β”œβ”€β”€ is-resolvable@1.0.0 (tryit@1.0.2)
β”œβ”€β”€ debug@2.2.0 (ms@0.7.1)
β”œβ”€β”€ doctrine@1.2.2 (esutils@1.1.6, isarray@1.0.0)
β”œβ”€β”€ levn@0.3.0 (type-check@0.3.2, prelude-ls@1.1.2)
β”œβ”€β”€ optionator@0.8.1 (fast-levenshtein@1.1.3, type-check@0.3.2, wordwrap@1.0.0, deep-is@0.1.3, prelude-ls@1.1.2)
β”œβ”€β”€ json-stable-stringify@1.0.1 (jsonify@0.0.0)
β”œβ”€β”€ chalk@1.1.3 (escape-string-regexp@1.0.5, supports-color@2.0.0, ansi-styles@2.2.1, has-ansi@2.0.0, strip-ansi@3.0.1)
β”œβ”€β”€ require-uncached@1.0.2 (resolve-from@1.0.1, caller-path@0.1.0)
β”œβ”€β”€ mkdirp@0.5.1 (minimist@0.0.8)
β”œβ”€β”€ shelljs@0.6.0
β”œβ”€β”€ concat-stream@1.5.1 (inherits@2.0.1, typedarray@0.0.6, readable-stream@2.0.6)
β”œβ”€β”€ glob@7.0.5 (path-is-absolute@1.0.0, fs.realpath@1.0.0, inherits@2.0.1, once@1.3.3, inflight@1.0.5, minimatch@3.0.2)
β”œβ”€β”€ espree@3.1.6 (acorn-jsx@3.0.1, acorn@3.2.0)
β”œβ”€β”€ is-my-json-valid@2.13.1 (jsonpointer@2.0.0, generate-function@2.0.0, xtend@4.0.1, generate-object-property@1.2.0)
β”œβ”€β”€ inquirer@0.12.0 (ansi-regex@2.0.0, strip-ansi@3.0.1, ansi-escapes@1.4.0, rx-lite@3.1.2, through@2.3.8, cli-width@2.1.0, figures@1.7.0, string-width@1.0.1, readline2@1.0.1, run-async@0.1.0, cli-cursor@1.0.2)
β”œβ”€β”€ file-entry-cache@1.2.4 (object-assign@4.1.0, flat-cache@1.0.10)
β”œβ”€β”€ js-yaml@3.6.1 (esprima@2.7.2, argparse@1.0.7)
β”œβ”€β”€ table@3.7.8 (slice-ansi@0.0.4, tv4@1.2.7, xregexp@3.1.1, strip-ansi@3.0.1, string-width@1.0.1, bluebird@3.4.1)
β”œβ”€β”€ es6-map@0.1.4 (d@0.1.1, es6-symbol@3.1.0, event-emitter@0.3.4, es6-iterator@2.0.0, es6-set@0.1.4, es5-ext@0.10.12)
β”œβ”€β”€ escope@3.6.0 (esrecurse@4.1.0, es6-weak-map@2.0.1)
└── lodash@4.13.1
$ eslint --init
? How would you like to configure ESLint? Use a popular style guide
? Which style guide do you want to follow? Standard
? What format do you want your config file to be in? JSON
Installing eslint-plugin-standard, eslint-config-standard
npm WARN peerDependencies The peer dependency eslint@^2.0.0-rc.0 included from eslint-config-standard will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency eslint-plugin-promise@^1.0.8 included from eslint-config-standard will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "--save-dev" "eslint-plugin-standard" "eslint-config-standard"
npm ERR! node v4.2.6
npm ERR! npm  v2.14.12
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package eslint@3.0.1 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer eslint-config-standard@5.3.1 wants eslint@^2.0.0-rc.0

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/rgant/Programming/.../npm-debug.log
Successfully created .eslintrc.json file in /Users/rgant/Programming/...
$ npm --version
2.14.12

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:27 (24 by maintainers)

github_iconTop GitHub Comments

2reactions
ilyavolodincommented, Jul 7, 2016

That might not be a bad idea to add --dry-run first, and at least show clear messaging about why we can’t install something.

0reactions
albertocommented, Aug 26, 2016

@nzakas Sorry, you are right, I didn’t notice the Google range syntax. I verified it works with 3.4.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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