After a merge from dependabot, I haven't been able to do npm install again. Even after I went back, it still woudn't let me install, even with my package.json reverted to the original. I've already tried to remove node_modules and cleared the cache. But it still gives me errors. Can anyone help?
When i do npm install, I get this error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: NONIC@0.0.1
npm ERR! Found: @angular/core@11.2.14
npm ERR! node_modules/@angular/core
npm ERR! @angular/core@"~11.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/core@">=12.0.0" from @ionic/angular@6.2.2
npm ERR! node_modules/@ionic/angular
npm ERR! @ionic/angular@"^6.0.0-dev.202108301401.736a0c2" 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.
This is my package.json:
{
"name": "NONIC",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/common": "~11.2.0",
"@angular/core": "~11.2.0",
"@angular/fire": "^6.1.4",
"@angular/forms": "~11.2.0",
"@angular/platform-browser": "~11.2.0",
"@angular/platform-browser-dynamic": "~11.2.0",
"@angular/router": "~11.2.0",
"@capacitor-community/http": "^1.4.1",
"@capacitor/android": "4.0.0",
"@capacitor/app": "^4.0.1",
"@capacitor/clipboard": "^4.0.1",
"@capacitor/core": "^4.0.0",
"@capacitor/haptics": "^4.0.1",
"@capacitor/ios": "^4.0.1",
"@capacitor/keyboard": "^4.0.1",
"@capacitor/push-notifications": "^4.0.0",
"@ionic/angular": "^6.0.0-dev.202108301401.736a0c2",
"capacitor-ios-app-tracking": "^1.0.5-rc1",
"moment": "^2.29.4",
"rxjs": "~6.6.0",
"tslib": "^2.0.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/architect": ">= 0.900 < 0.1200",
"@angular-devkit/build-angular": "~0.1101.4",
"@angular/cli": "~11.1.4",
"@angular/compiler": "~11.2.0",
"@angular/compiler-cli": "~11.2.0",
"@angular/language-service": "~11.2.0",
"@capacitor/cli": "^4.0.0",
"@ionic/angular-toolkit": "^3.1.0",
"@ionic/cli": "6.20.1",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"cordova-res": "0.15.4",
"firebase-tools": "^8.0.0",
"fuzzy": "^0.1.3",
"inquirer": "^6.2.2",
"inquirer-autocomplete-prompt": "^1.0.1",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.2.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"open": "^7.0.3",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~4.0.2"
},
"description": "An Ionic project"
}