Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM 7 installs very old version #2000

Closed
scottlet opened this issue Mar 8, 2021 · 6 comments
Closed

NPM 7 installs very old version #2000

scottlet opened this issue Mar 8, 2021 · 6 comments

Comments

@scottlet
Copy link

scottlet commented Mar 8, 2021

This might be related to the #1986 issue so if it is apologies for the noise.

Running npm i --save-dev eslint-plugin-import eslint-config-import in an empty project brings in a super old version of the plugin that seems pinned to the eslint-config-import version (0.13.0). In turn this is causing me problems when using eslint-import-resolver-alias which expects eslint-plugin-import@">=1.4.0

But all is fine if I force the npm install.

$ node -v
v15.11.0
$ npm -v
7.6.0
@ljharb
Copy link
Member

ljharb commented Mar 8, 2021

What is eslint-config-import?

@scottlet
Copy link
Author

scottlet commented Mar 8, 2021

@ljharb
Copy link
Member

ljharb commented Mar 8, 2021

I would suggest not using that package, as it hasn’t been maintained in 5 years, i don’t have publish rights on it, and i can’t find any record of that package.json file in this repo.

@ljharb
Copy link
Member

ljharb commented Mar 8, 2021

Additionally, its peer dep on 0.13 of this plugin means that you are forced to use 0.13 of the plugin with it, otherwise your dep graph is invalid.

@scottlet
Copy link
Author

scottlet commented Mar 8, 2021

OK thanks. Is an old project, will remove eslint-config-import and see what breaks :)

@ljharb
Copy link
Member

ljharb commented Mar 8, 2021

@ljharb ljharb closed this as completed May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants