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.

Can't install eslint

See original GitHub issue

I followed the install instructions: npm install -g eslint and then this:

$ 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? JavaScript
Installing eslint-plugin-standard, eslint-config-standard
@mperham/sidekiq@0.5.0 /Users/mike/src/sjs
├── UNMET PEER DEPENDENCY eslint@^2.0.0-rc.0
├── eslint-config-standard@5.1.0 
├── UNMET PEER DEPENDENCY eslint-plugin-promise@^1.0.8
├── eslint-plugin-standard@1.3.2 
└── sidekiq@1.1.1  extraneous

npm WARN eslint-config-standard@5.1.0 requires a peer of eslint@^2.0.0-rc.0 but none was installed.
npm WARN eslint-config-standard@5.1.0 requires a peer of eslint-plugin-promise@^1.0.8 but none was installed.
npm WARN @mperham/sidekiq@0.5.0 No repository field.

Running eslint lib gives this:

$ eslint lib

Oops! Something went wrong! :(

ESLint couldn't find the plugin "eslint-plugin-standard". This can happen for a couple different reasons:
[snip]

I’m new to the JavaScript world - please let me know if you need more info.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
nzakascommented, Apr 15, 2016

@zxqfox that already exists: https://www.npmjs.com/package/eslint-cli. We don’t really want to disable global installs due to some editors using it.

1reaction
nzakascommented, Apr 15, 2016

I think maybe, “ESLint was installed locally. We recommend using this local copy instead of your globally-installed copy.”?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install ESLint in project folder - npm error code ENOSELF
I'm struggling to install ESLint from my terminal (locally in my project folder). I'm running this command: sudo npm install eslint ...
Read more >
Getting Started with ESLint - Pluggable JavaScript Linter
You can install and configure ESLint using this command: npm init @eslint/config. 1. If you want to use a specific shareable config that...
Read more >
ESLint - npm
You can install and configure ESLint using this command: npm init @eslint/config. After that, you can run ESLint on any file or directory ......
Read more >
1408392 - Cannot install eslint locally on Windows
I got he following error when I tried: $ mach eslint eslint-plugin-react v7.1.0 needs to be installed locally. eslint-plugin-no-unsanitized v2.0.1 needs to ...
Read more >
ESLint | WebStorm Documentation - JetBrains
Install ESLint  · In the embedded Terminal ( Alt+F12 ) , type one of the following commands: npm install --g eslint for...
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