Giter Club home page Giter Club logo

Comments (3)

merolhack avatar merolhack commented on July 28, 2024 2

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/[email protected]" has incorrect peer dependency "zone.js@~0.9.1".
warning " > @angular/[email protected]" has incorrect peer dependency "@angular/[email protected]".
warning " > @angular/[email protected]" has incorrect peer dependency "@angular/[email protected]".
warning " > [email protected]" has incorrect peer dependency "@angular/common@^7.2.0".
warning " > [email protected]" 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

from material-angular-dashboard.

merolhack avatar merolhack commented on July 28, 2024

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

from material-angular-dashboard.

catfishcoder avatar catfishcoder commented on July 28, 2024

Master branch has been updated to version 8.2.14

from material-angular-dashboard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.