eslint-plugin-import requires outdated version of eslint as peer dependency

Created on 12 Jan 2018  路  8Comments  路  Source: benmosher/eslint-plugin-import

I'm installing eslint 4.1.1 and get the following message during install:

npm WARN [email protected] requires a peer of [email protected] - 3.x but 
none is installed. You must install peer dependencies yourself

Am I missing something? Should the peer dependency be bumped?

I am not installing eslint globally so #989 and #916 are not applicable as this is being installed in a project specific folder.

question

All 8 comments

That is an outdated version of eslint-plugin-import, which is not compatible with eslint 4.

Upgrade eslint-plugin-import to the latest version, and you'll be able to use it with eslint 4.

Thanks, I just figured out where it came from and have updated it accordingly. Sorry about the noise

Can you tell me how it was fixed. I am having same issue

@AwaisFayyaz what does npm ls print out?

A long tree structure. In between, this

screen shot 2018-04-26 at 12 11 07 pm

And at the end

screen shot 2018-04-26 at 12 10 33 pm

@AwaisFayyaz ok, so your issue is the same - you're using a too-old version of eslint-plugin-import, eslint-plugin-jsx-a11y, and eslint-plugin-react. Update all of them.

can you tell me the commands to update these. Thanks

The same commands you used to install them in the first place, basically. This repo isn鈥檛 the place to give an npm tutorial, unfortunately.

Was this page helpful?
0 / 5 - 0 ratings