0
votes

Sorry for the broad and silly question... but can someone please take a look at this and tell me if I have gone crazy? Everything looks OK to me.

groot@DESKTOP-F9TMEHC MINGW64 /c/mobileDev/Ionic5-go npm ls --depth="0"

Ionic5-go C:\mobileDev\Ionic5-go @angular-devkit/[email protected] @angular-devkit/[email protected] @angular-devkit/[email protected] @angular-devkit/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] UNMET PEER DEPENDENCY @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @angular/[email protected] @capacitor/[email protected] @capacitor/[email protected] @capacitor/[email protected] @capacitor/[email protected] @commitlint/[email protected] @commitlint/[email protected] @ionic/[email protected] @ionic/[email protected] @ngx-translate/[email protected] @ngx-translate/[email protected] @types/[email protected] @types/[email protected] @types/[email protected] @webcomponents/[email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected]

npm ERR! peer dep missing: @angular/core@^6.0.3, required by [email protected]

groot@DESKTOP-F9TMEHC MINGW64 /c/mobileDev/Ionic5-go npm -v @angular/core

6.13.4

package.json:

dependencies": {
"@angular/common": "^8.2.1",
"@angular/core": "^8.2.1",
"@angular/fire": "^5.2.1",
"@angular/forms": "^8.2.1",
"@angular/platform-browser": "^8.2.1",
"@angular/platform-browser-dynamic": "^8.2.1",
"@angular/pwa": "~0.802.1",
"@angular/router": "^8.2.1",
"@angular/service-worker": "^8.2.1",
"@capacitor/android": "^1.5.0",
"@capacitor/cli": "^1.5.0",
"@capacitor/core": "^1.5.0",
"@capacitor/ios": "^1.5.0",
"@ionic/angular": "5.0.0",
"@ngx-translate/core": "^11.0.1",
"@ngx-translate/http-loader": "^4.0.0",
"angular-pipes": "^9.0.2",
"core-js": "^2.5.7",
"dayjs": "1.8.0",
"firebase": "^7.2.3",
"google-libphonenumber": "^3.2.1",
"npm": "^6.13.7",
"rxjs": "6.5.2",
"tslib": "^1.10.0",
"videogular2": "6.4.0",
"zone.js": "~0.9.1"
}
1
Share package.json pleaseGuerric P
my apologizes for the delay sir.Pete
updated question with package.json, I swear if I could figure out how to format it properly I would.Pete
I'm not sure why you think it's lying? videogular2 has a peer dependency of angular 6. you have angular 8 in your packagebryan60
I assumed I had angular 8 biu after running the following I thought I had angular 6 for some reason... groot@DESKTOP-F9TMEHC MINGW64 /c/mobileDev/Ionic5-go npm -v @angular/core 6.13.4Pete

1 Answers

1
votes

peer dependencies require you to have the required peer dependency in your package.json. Whatever happens to be on your machine is irrelevant, as npm wants to know your package will work with a clean install in any environment.

you have:

"videogular2": "6.4.0"

which carries a peer dependency of angular 6. you have angular 8 required:

"@angular/core": "^8.2.1"

this means it's incompatible. To resolve this, you have 3 choices.

  1. upgrade videogular

    "videogular2": "^7.0.0"

  2. downgrade angular

    "@angular/core": "^6.0.0"

  3. find a replacement for videogular