locked
Angular JS : version conflict RRS feed

  • Question

  • User791773689 posted

    Hello everybody,

    I have left my Angular project for a while (the Angular Tour, done with the tutorial), and have got to refresh my ideas about it.

    I went to the directory of the application, and typed

    ng serve --open

    and got this answer :

    Global Angular CLI version greater than local version

    then I ran this

    npm install --save-dev @angular/cli@latest

    then was invited to try another version to solve vulnerabilities,

    and ng serve --open again, and I was insulted in answer :

    Could not find the implementation for builder @angular-devkit/build-angular:dev-server
    Error: Could not find the implementation for builder @angular-devkit/build-angular:dev-server
        at WorkspaceNodeModulesArchitectHost.resolveBuilder (D:\Projets Visual Studio\Web\TestAngular006\TestAngular006\angular-tour-of-heroes\node_modules\@angular\cli\node_modules\@angular-devkit\architect\node\node-modules-architect-host.js:49:19)
        at ServeCommand.initialize (D:\Projets Visual Studio\Web\TestAngular006\TestAngular006\angular-tour-of-heroes\node_modules\@angular\cli\models\architect-command.js:72:63)
        at process._tickCallback (internal/process/next_tick.js:68:7)
        at Function.Module.runMain (internal/modules/cjs/loader.js:745:11)
        at startup (internal/bootstrap/node.js:283:19)
        at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)

    Oh, so I type ng --version, and get this :

    Angular CLI: 8.0.2
    Node: 10.15.0
    OS: win32 x64
    Angular: 7.2.4
    ... animations, common, compiler, core, forms, language-service
    ... platform-browser, platform-browser-dynamic, router
    
    Package                           Version
    -----------------------------------------------------------
    @angular-devkit/architect         0.12.4
    @angular-devkit/build-angular     0.12.4
    @angular-devkit/build-optimizer   0.12.4
    @angular-devkit/build-webpack     0.12.4
    @angular-devkit/core              7.2.4
    @angular-devkit/schematics        8.0.2Is 
    @angular/cli                      8.0.2
    @angular/compiler-cli             8.0.0
    @ngtools/webpack                  7.2.4
    @schematics/angular               8.0.2
    @schematics/update                0.800.2
    rxjs                              6.3.3
    typescript                        3.2.4
    webpack                           4.28.4
    

    Is anyone able to guide me to make this project work ?

    Monday, June 10, 2019 8:38 AM

All replies

  • User-1764593085 posted

    Hi Gluups,

    Your Angular version is 7.2.4 and your Angular CLI is 8.0.2, but @angular/cli version 8 will only work with Angular version 8.

    You could delete global angular-cli and reinstall it with specific version:

    npm uninstall -g @angular/cli
    npm cache clean npm install -g @angular/cli@7.3.6 // or whatever version you need

    Or update to version 8 by running the update command via 

    ng update @angular/cli @angular/core

    Refer to 

    https://github.com/angular/angular-cli/issues/14546

    https://update.angular.io/#7.2:8.0

    Since it is related to angular configuration instead of .net core, you could ask it on its github(https://github.com/angular/angular-cli/issues) for more accurate response.

    Best Regards,

    Xing

    Tuesday, June 11, 2019 1:56 AM