镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Upgrade angular version to 8.0 #20

Closed

Description

@TheDevAdvisor

Expected behavior
Upgrade angular version to 8.0

Actual behavior
Current version is 7.x.x

Steps to reproduce the behavior
Relevant code

Activity

  1. merolhack commented on Jul 27, 2019

    @merolhack

    The steps to update the angular version are:

    npm i
    npm update
    ng update --force --all
    

    The output of the last command are:

    To disable this warning use "ng config -g cli.warnings.versionMismatch false".
                      Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.4 <3.5", would install "3.5.3")
                      Package "@angular-devkit/build-angular" has an incompatible peer dependency to "typescript" (requires ">=3.1 < 3.5", would install "3.5.3")
                      Package "@angular/http" has an incompatible peer dependency to "@angular/core" (requires "7.2.15", would install "8.1.3")
                      Package "nvd3" has an incompatible peer dependency to "d3" (requires "^3.4.4", would install "5.9.7").
                      Package "@angular/core" has an incompatible peer dependency to "zone.js" (requires "~0.9.1", would install "0.10.0")
                      Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=3.4 <3.5", would install "3.5.3").
                      Package "@angular/core" has an incompatible peer dependency to "zone.js" (requires "~0.9.1", would install "0.10.0").
        Updating package.json with dependency @angular/cli @ "8.1.2" (was "7.2.2")...
        Updating package.json with dependency @types/d3 @ "5.7.2" (was "3.5.40")...
        Updating package.json with dependency @angular/language-service @ "8.1.3" (was "7.2.1")...
        Updating package.json with dependency @types/nvd3 @ "1.8.39" (was "1.8.38")...
        Updating package.json with dependency codelyzer @ "5.1.0" (was "4.3.0")...
        Updating package.json with dependency node-sass @ "4.12.0" (was "4.9.0")...
        Updating package.json with dependency @angular/compiler-cli @ "8.1.3" (was "7.2.1")...
        Updating package.json with dependency @angular-devkit/build-angular @ "0.801.2" (was "0.6.5")...
        Updating package.json with dependency stylelint-config-recommended-scss @ "3.3.0" (was "3.2.0")...
        Updating package.json with dependency stylelint-config-standard @ "18.3.0" (was "18.2.0")...
        Updating package.json with dependency ts-node @ "8.3.0" (was "6.0.5")...
        Updating package.json with dependency tslint @ "5.18.0" (was "5.10.0")...
        Updating package.json with dependency tslint-angular @ "3.0.2" (was "1.1.2")...
        Updating package.json with dependency stylelint-scss @ "3.9.2" (was "3.1.0")...
        Updating package.json with dependency stylelint @ "10.1.0" (was "9.2.1")...
        Updating package.json with dependency @angular/http @ "7.2.15" (was "7.2.1")...
        Updating package.json with dependency @angular/forms @ "8.1.3" (was "7.2.1")...
        Updating package.json with dependency core-js @ "3.1.4" (was "2.5.6")...
        Updating package.json with dependency tslint-config-airbnb @ "5.11.1" (was "5.9.2")...
        Updating package.json with dependency @angular/compiler @ "8.1.3" (was "7.2.1")...
        Updating package.json with dependency d3 @ "5.9.7" (was "3.5.17")...
        Updating package.json with dependency @types/node @ "12.6.8" (was "10.1.2")...
        Updating package.json with dependency @angular/core @ "8.1.3" (was "7.2.1")...
        Updating package.json with dependency typescript @ "3.5.3" (was "3.4.5")...
        Updating package.json with dependency @angular/platform-browser @ "8.1.3" (was "7.2.1")...
        Updating package.json with dependency @angular/common @ "8.1.3" (was "7.2.1")...
        Updating package.json with dependency rxjs @ "6.5.2" (was "6.3.3")...
        Updating package.json with dependency @angular/animations @ "8.1.3" (was "7.2.1")...
        Updating package.json with dependency @angular/platform-browser-dynamic @ "8.1.3" (was "7.2.1")...
        Updating package.json with dependency zone.js @ "0.10.0" (was "0.8.28")...
        Updating package.json with dependency @angular/router @ "8.1.3" (was "7.2.1")...
    UPDATE package.json (2254 bytes)
    warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
    [--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0/1203(node:16290) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
    warning " > @angular/core@8.1.3" has incorrect peer dependency "zone.js@~0.9.1".
    warning " > @angular/http@7.2.15" has incorrect peer dependency "@angular/core@7.2.15".
    warning " > @angular/http@7.2.15" has incorrect peer dependency "@angular/platform-browser@7.2.15".
    warning " > material-angular-select@1.0.0" has incorrect peer dependency "@angular/common@^7.2.0".
    warning " > material-angular-select@1.0.0" has incorrect peer dependency "@angular/core@^7.2.0".
    

    With the command: ng update --force

    You will see the next output:

    We analyzed your package.json, there are some packages to update:
    
          Name                               Version                  Command to update
         --------------------------------------------------------------------------------
          @angular/cli                       7.2.2 -> 8.1.2           ng update @angular/cli
          @angular/core                      7.2.1 -> 8.1.3           ng update @angular/core
          @angular/core                      7.2.1 -> 7.2.15          ng update @angular/core
          rxjs                               6.3.3 -> 6.5.2           ng update rxjs
    
    There might be additional packages that are outdated.
    Run "ng update --all" to try to update all at the same time.
    

    Refer to this bug: angular/angular-cli#15134

  2. merolhack commented on Jul 27, 2019

    @merolhack

    With the latest commands, if you run:
    npm start

    The output is:

    ERROR in The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.5.3 was found instead.
    ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
    ℹ 「wdm」: Failed to compile.
    

    Then:
    npm install typescript@">=3.4.0 <3.5.0" --save-dev

    But i got a lot of errors, i need to install all again with:

    rm -rf node_modules
    npm i
    
  3. maxwellCatCoder commented on Jun 25, 2020

    @maxwellCatCoder
    Contributor

    Master branch has been updated to version 8.2.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions