eslint-plugin-vue-libs icon indicating copy to clipboard operation
eslint-plugin-vue-libs copied to clipboard

[email protected] - Unable to resolve dependency tree

Open webdevnerdstuff opened this issue 3 years ago • 2 comments

Issue: After updating to eslint 7.20.0 installing eslint-plugin-vue-libs will not install due to dependency tree.

Error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^7.20.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^5.11.1 || ^6.0.0" from [email protected]
npm ERR! node_modules/eslint-plugin-vue-libs
npm ERR!   dev eslint-plugin-vue-libs@"^4.0.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Here is the full report:

# npm resolution error report

2021-02-22T18:21:00.513Z

While resolving: [email protected]
Found: [email protected]
node_modules/eslint
  dev eslint@"^7.20.0" from the root project

Could not resolve dependency:
peer eslint@"^5.11.1 || ^6.0.0" from [email protected]
node_modules/eslint-plugin-vue-libs
  dev eslint-plugin-vue-libs@"^4.0.0" from the root project

Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{
  "code": "ERESOLVE",
  "current": {
    "name": "eslint",
    "version": "7.20.0",
    "whileInstalling": {
      "name": "site",
      "version": "0.0.1",
      "path": "[removed]"
    },
    "location": "node_modules/eslint",
    "dependents": [
      {
        "type": "dev",
        "name": "eslint",
        "spec": "^7.20.0",
        "from": {
          "location": "[removed]"
        }
      }
    ]
  },
  "edge": {
    "type": "peer",
    "name": "eslint",
    "spec": "^5.11.1 || ^6.0.0",
    "error": "INVALID",
    "from": {
      "name": "eslint-plugin-vue-libs",
      "version": "4.0.0",
      "whileInstalling": {
        "name": "site",
        "version": "0.0.1",
        "path": "[removed]"
      },
      "location": "node_modules/eslint-plugin-vue-libs",
      "dependents": [
        {
          "type": "dev",
          "name": "eslint-plugin-vue-libs",
          "spec": "^4.0.0",
          "from": {
            "location": "[removed]"
          }
        }
      ]
    }
  },
  "peerConflict": null,
  "strictPeerDeps": false,
  "force": false
}

Solution: Please update to support eslint 7.20.0

webdevnerdstuff avatar Feb 22 '21 18:02 webdevnerdstuff