Can't install eslint
See original GitHub issueI 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:
- Created 7 years ago
- Comments:20 (18 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
I think maybe, “ESLint was installed locally. We recommend using this local copy instead of your globally-installed copy.”?