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 Install issue #490

Open
sisindrymedagam opened this issue Jul 11, 2022 · 1 comment
Open

NPM Install issue #490

sisindrymedagam opened this issue Jul 11, 2022 · 1 comment
Labels

Comments

@sisindrymedagam
Copy link

Describe the bug
I have upgraded from
Before

"@angular/animations": "~13.3.0",
    "@angular/common": "~13.3.0",
    "@angular/compiler": "~13.3.0",
    "@angular/core": "~13.3.0",
    "@angular/forms": "~13.3.0",
    "@angular/platform-browser": "~13.3.0",
    "@angular/platform-browser-dynamic": "~13.3.0",
    "@angular/platform-server": "~13.3.0",
    "@angular/router": "~13.3.0",
    "@angular/service-worker": "~13.3.0",
    "@nguniversal/express-engine": "^13.1.1",
    "domino": "^2.1.6",
    "express": "^4.15.2",
    "ngx-cookie": "^5.0.2",
    "ngx-cookie-backend": "^5.0.2",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"

After

    "@angular/animations": "^14.0.5",
    "@angular/common": "^14.0.5",
    "@angular/compiler": "^14.0.5",
    "@angular/core": "^14.0.5",
    "@angular/forms": "^14.0.5",
    "@angular/platform-browser": "^14.0.5",
    "@angular/platform-browser-dynamic": "^14.0.5",
    "@angular/platform-server": "^14.0.5",
    "@angular/router": "^14.0.5",
    "@nguniversal/express-engine": "^14.0.3",
    "domino": "^2.1.6",
    "express": "^4.15.2",
    "ngx-cookie": "^6.0.1",
    "ngx-cookie-backend": "^6.0.1",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"

I have removed node_modules folder and package-lock.json file, than ran npm install command the following error is occuring in console

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/ngx-cookie
npm ERR!   ngx-cookie@"^6.0.1" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer ngx-cookie@"6.0.0" from [email protected]
npm ERR! node_modules/ngx-cookie-backend
npm ERR!   ngx-cookie-backend@"^6.0.1" 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.

Expected behavior
It should install all packages with out any error.

Stacktrace

# npm resolution error report

2022-07-11T11:56:23.149Z

While resolving: [email protected]
Found: [email protected]
node_modules/ngx-cookie
  ngx-cookie@"^6.0.1" from the root project

Could not resolve dependency:
peer ngx-cookie@"6.0.0" from [email protected]
node_modules/ngx-cookie-backend
  ngx-cookie-backend@"^6.0.1" 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": "ngx-cookie",
    "version": "6.0.1",
    "whileInstalling": {
      "name": "coderons",
      "version": "2.2.3",
      "path": "D:\\Personal\\Coderons\\Code\\Main\\web"
    },
    "location": "node_modules/ngx-cookie",
    "isWorkspace": false,
    "dependents": [
      {
        "type": "prod",
        "name": "ngx-cookie",
        "spec": "^6.0.1",
        "from": {
          "location": "D:\\Personal\\Coderons\\Code\\Main\\web"
        }
      }
    ]
  },
  "currentEdge": {
    "type": "prod",
    "name": "ngx-cookie",
    "spec": "^6.0.1",
    "from": {
      "location": "D:\\Personal\\Coderons\\Code\\Main\\web"
    }
  },
  "edge": {
    "type": "peer",
    "name": "ngx-cookie",
    "spec": "6.0.0",
    "error": "INVALID",
    "from": {
      "name": "ngx-cookie-backend",
      "version": "6.0.1",
      "whileInstalling": {
        "name": "coderons",
        "version": "2.2.3",
        "path": "D:\\Personal\\Coderons\\Code\\Main\\web"
      },
      "location": "node_modules/ngx-cookie-backend",
      "isWorkspace": false,
      "dependents": [
        {
          "type": "prod",
          "name": "ngx-cookie-backend",
          "spec": "^6.0.1",
          "from": {
            "location": "D:\\Personal\\Coderons\\Code\\Main\\web"
          }
        }
      ]
    }
  },
  "strictPeerDeps": false,
  "force": false
}

Environment:

  • Angular version 14

Additional context
NAN

@sisindrymedagam
Copy link
Author

sisindrymedagam commented Jul 30, 2022

Any update on this @salemdar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant