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

Cant update angular cli and core #14650

Closed
andrewdaylondon opened this issue Jun 3, 2019 · 12 comments
Closed

Cant update angular cli and core #14650

andrewdaylondon opened this issue Jun 3, 2019 · 12 comments

Comments

@andrewdaylondon
Copy link

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>

@andrewdaylondon
Copy link
Author

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

@elvisbegovic
Copy link
Contributor

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

@andrewdaylondon
Copy link
Author

andrewdaylondon commented Jun 3, 2019 via email

@Ankitacse
Copy link

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

@Londovir
Copy link

Londovir commented Jun 5, 2019

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.

@NRaf
Copy link

NRaf commented Jun 6, 2019

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

@oorobets
Copy link

oorobets commented Jun 6, 2019

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. :|

@andrewdaylondon
Copy link
Author

andrewdaylondon commented Jun 6, 2019

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.

@oorobets
Copy link

oorobets commented Jun 9, 2019

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.

@driiftkiing
Copy link

driiftkiing commented Aug 22, 2019

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.

@caroso1222
Copy link

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

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants