A
A
Alexander2016-09-20 18:23:49
bash
Alexander, 2016-09-20 18:23:49

Why won't airbnb install for eslint?

I installed eslint, everything went fine without errors, then I try to install airbnb with the following command:

sudo npm install -g --save-dev eslint-config-airbnb

And I get this:
├── UNMET PEER DEPENDENCY [email protected]^3.5.0
├─┬ [email protected] 
│ ├── UNMET PEER DEPENDENCY [email protected]^3.5.0
│ └── UNMET PEER DEPENDENCY [email protected]^1.14.0
├── UNMET PEER DEPENDENCY [email protected]^1.14.0
├── UNMET PEER DEPENDENCY [email protected]^2.2.1
└── UNMET PEER DEPENDENCY [email protected]^6.2.0

npm WARN [email protected] requires a peer of [email protected]^3.5.0 but none was installed.
npm WARN [email protected] requires a peer of [email protected]^2.2.1 but none was installed.
npm WARN [email protected] requires a peer of [email protected]^1.14.0 but none was installed.
npm WARN [email protected] requires a peer of [email protected]^6.2.0 but none was installed.
npm WARN [email protected] requires a peer of [email protected]^3.5.0 but none was installed.
npm WARN [email protected] requires a peer of [email protected]^1.14.0 but none was installed.

As far as I could understand the error due to the version of eslint. But I installed eslint version 2.x and 3.5.0 and always got the same error...
Help me figure it out.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
doasync, 2017-06-30
@doasync

There plugins depend on each other. I suffered myself. Then I figured it out and wrote the npm module eslint-config-airbnb-standard .
You need to install eslint version 3 and eslint-plugin-import first. Also, you are trying to install eslint globally. To do this, all dependent plugins must also be installed globally, which is not cool. So I figured out how to get around it. Read here.
I use this module now for Sublime Text 3 and WebStorm. Also extended the JavaScript Standard Style config. Not any now UNMET PEER DEPENDENCY. You just install, configure according to the instructions, put it in the .eslintrc folder, if necessary, and everything works.
wRwDALx.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question