Topic: i can't install angular version

Jesus Guevara free asked 3 years ago


I am trying to install the version of angular pro but I can't install it

Resources (screenshots, code snippets etc.)

...\Desktop\mdb4>npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: mdb4-angular-ui-kit-pro-essential@10.1.1
npm ERR! Found: @angular/common@10.1.6
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"~10.1.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^6.0.0 || ^7.0.0 || ^8.0.0" from @agm/core@1.1.0
npm ERR! node_modules/@agm/core
npm ERR!   @agm/core@"^1.0.0-beta.5" 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.
npm ERR!
npm ERR! See ....\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! ...\AppData\Local\npm-cache_logs\2021-02-23T04_31_21_916Z-debug.log

npm resolution error report

2021-02-23T04:31:21.907Z

While resolving: mdb4-angular-ui-kit-pro-essential@10.1.1 Found: @angular/common@10.1.6 node_modules/@angular/common @angular/common@"~10.1.2" from the root project

Could not resolve dependency: peer @angular/common@"^6.0.0 || ^7.0.0 || ^8.0.0" from @agm/core@1.1.0 node_modules/@agm/core @agm/core@"^1.0.0-beta.5" 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": "@angular/common",
    "version": "10.1.6",
    "whileInstalling": {
      "name": "mdb4-angular-ui-kit-pro-essential",
      "version": "10.1.1",
      "path": "C:\\Users\\jesus\\Desktop\\mdb4"
    },
    "location": "node_modules/@angular/common",
    "dependents": [
      {
        "type": "prod",
        "name": "@angular/common",
        "spec": "~10.1.2",
        "from": {
          "location": "C:\\Users\\jesus\\Desktop\\mdb4"
        }
      }
    ]
  },
  "edge": {
    "type": "peer",
    "name": "@angular/common",
    "spec": "^6.0.0 || ^7.0.0 || ^8.0.0",
    "error": "INVALID",
    "from": {
      "name": "@agm/core",
      "version": "1.1.0",
      "whileInstalling": {
        "name": "mdb4-angular-ui-kit-pro-essential",
        "version": "10.1.1",
        "path": "C:\\Users\\jesus\\Desktop\\mdb4"
      },
      "location": "node_modules/@agm/core",
      "dependents": [
        {
          "type": "prod",
          "name": "@agm/core",
          "spec": "^1.0.0-beta.5",
          "from": {
            "location": "C:\\Users\\jesus\\Desktop\\mdb4"
          }
        }
      ]
    }
  },
  "peerConflict": null,
  "strictPeerDeps": false,
  "force": false
}

Arkadiusz Idzikowski staff commented 3 years ago

How can we reproduce that? Did you just open the MDB Pro Essential project and run npm install command?

Please try to remove "@agm/core": "^1.0.0-beta.5", from package.json, remove node_modules and package-lock.json and run npm install again.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 10.1.1
  • Device: desk
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No