Angular-cli: Cant update angular cli and core

Created on 3 Jun 2019  Â·  12Comments  Â·  Source: angular/angular-cli

PS D:_current tutorial\Angular-7-formerly-Angular-2---The-Complete-Guide-master\Codes - 1\S09\services-start\services-start> ng update @angular/cli @angular/core
Your global Angular CLI version (7.3.8) is greater than your local
version (6.0.8). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed.
packageGroup metadata of package @angular/cli is malformed. Ignoring.
Package "codelyzer" has an incompatible peer dependency to "@angular/compiler" (requires ">=7.0.0-rc.0 <8.0.0||>=2.3.1 <7.0.0||>6.0.0-beta <7.0.0", would install "8.0.0").
Package "codelyzer" has an incompatible peer dependency to "@angular/platform-browser" (requires ">=7.0.0-rc.0 <8.0.0||>=2.3.1 <7.0.0||>6.0.0-beta <7.0.0", would install "8.0.0").
Package "codelyzer" has an incompatible peer dependency to "@angular/platform-browser-dynamic" (requires ">=7.0.0-rc.0 <8.0.0||>=2.3.1 <7.0.0||>6.0.0-beta <7.0.0", would install "8.0.0").
Package "codelyzer" has an incompatible peer dependency to "@angular/core" (requires ">=7.0.0-rc.0 <8.0.0||>=2.3.1 <7.0.0||>6.0.0-beta <7.0.0", would install "8.0.0").
Package "codelyzer" has an incompatible peer dependency to "@angular/common" (requires ">=7.0.0-rc.0 <8.0.0||>=2.3.1 <7.0.0||>6.0.0-beta <7.0.0", would install "8.0.0").
Incompatible peer dependencies found. See above.
PS D:\_current tutorial\Angular-7-formerly-Angular-2---The-Complete-Guide-master\Codes - 1\S09\services-start\services-start>

Most helpful comment

Oh no I didnt follow the template, I'm such a bad person aaaaaAAAAAAAWWWWWwwwww!
I used angular cli 6.2.8 which worked, lets hope someone can fix such a major issue before we all move over to React.

All 12 comments

Shortening the name of all the folders has helped with the malformed part and installing the seperate files to version 8 seems to have done the trick. And thanks for moving the browser link to the bottom Cheers

Hi, it’s not easy to help you like that, if you want feedback from team or community you should highly follow template issue. https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#-submission-guidelines

It's fixed, but thanks

On Mon, 3 Jun 2019, 21:45 Elvis Begović, notifications@github.com wrote:

Hi, it’s not easy to help you like that, if you want feedback from team or
community you should highly follow template issue.
https://github.com/angular/angular-cli/blob/master/CONTRIBUTING.md#-submission-guidelines

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/angular-cli/issues/14650?email_source=notifications&email_token=AIOLC4N2FYKAGJTYD4TTDHDPYV7IBA5CNFSM4HSRDMJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW2UO5Y#issuecomment-498419575,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIOLC4JAENU6HPYR7SZRFJLPYV7IBANCNFSM4HSRDMJA
.

packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
how fixed?

I too have been hit with this, and there's no diagnostic/debugging information I can see. I simply cannot use the expected ng update commands to update cli or core at all. I get hit with about 7 different "malformed metadata" error messages, then get nailed with a codelyzer incompatible peer dependency, and it just gives up at that point.

I'm not thrilled with manually updating every individual cli and core entry in package.json, but I'm afraid at this point my only hope is to use the cli to spin up a new 8.0 "Hello World" project, and then manually diff/correct my project from all of the temp projects values.

Also having issues trying to update.

I'm being the following:

Your global Angular CLI version (7.1.3) is greater than your local
version (7.0.6). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
    packageGroup metadata of package @angular/cli is malformed. Ignoring.
    packageGroup metadata of package @angular/cli is malformed.
    packageGroup metadata of package @angular/cli is malformed. Ignoring.
    packageGroup metadata of package @angular/cli is malformed. Ignoring.
    packageGroup metadata of package @angular/cli is malformed.
    packageGroup metadata of package @angular/cli is malformed. Ignoring.
    packageGroup metadata of package @angular/cli is malformed. Ignoring.
    packageGroup metadata of package @angular/cli is malformed.
    packageGroup metadata of package @angular/cli is malformed. Ignoring.
    packageGroup metadata of package @angular/cli is malformed. Ignoring.
Cannot read property 'split' of null

packageGroup metadata of package @angular/cli is malformed. Ignoring.
packageGroup metadata of package @angular/cli is malformed.
how fixed?

It was not. Person did not follow template, that's why they closed it. :|

Oh no I didnt follow the template, I'm such a bad person aaaaaAAAAAAAWWWWWwwwww!
I used angular cli 6.2.8 which worked, lets hope someone can fix such a major issue before we all move over to React.

In my case I was updating from Angular 6.1 to angular@latest, which is version 8 right now. Upgrade to version 7.3.9 worked just fine.

According to https://update.angular.io/

Warning: We do not recommend moving across multiple major versions.

This command is working for me ng update @angular/cli@~7.0.0

I have also tried ng update @angular/cli --to 7, but that is not working.

Try a hard update: ng update [pkg] --force

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IngvarKofoed picture IngvarKofoed  Â·  3Comments

purushottamjha picture purushottamjha  Â·  3Comments

JanStureNielsen picture JanStureNielsen  Â·  3Comments

NCC1701M picture NCC1701M  Â·  3Comments

sysmat picture sysmat  Â·  3Comments