My issue is pretty simple but I'm not so good with npm. I have tried to update dependencies of a Nuxt.js project by using the commands exposed on this thread which worked fine to update my package.json with the latest packages.
However, by running the command npm list --depth=0
to check if there were any issues, I had the following problem with @eslint library.
The result is the following (with [email protected]
):
`-- [email protected] npm ERR! peer dep missing: eslint@^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0, required by [email protected] npm ERR! peer dep missing: eslint@^5.0.0 || ^6.0.0, required by [email protected] npm ERR! peer dep missing: [email protected] - 6.x, required by [email protected] npm ERR! peer dep missing: eslint@^5.0.0 || ^6.0.0, required by [email protected] npm ERR! peer dep missing: eslint@^6.4.0, required by [email protected] npm ERR! peer dep missing: eslint@^5.0.0 || ^6.0.0, required by [email protected] PS C:\Projects\Sponsor.Online\sponsr\frontendr>
As you can see, seems that it can be solved by installing [email protected]
, but as soon as I do so, the result is the next one:
`-- [email protected] npm ERR! peer dep missing: eslint@^7.0.0, required by @nuxtjs/[email protected] npm ERR! peer dep missing: eslint@>=6.8.0, required by [email protected] PS C:\Projects\Sponsor.Online\sponsr\frontendr>
Seems that I have no easy way to solve these dependencies since some of them required a version up to version 6.0.0 and others required version above 7.0.0
What options do I have?
Can I have two version of the same package? It's ok to do so?
Should I consider removing some of these packages?
Should I downgrade some packages manually and see how I can intersect those versions?