Last post Jun 11, 2019 01:56 AM by Xing Zou
Jun 10, 2019 08:38 AM|Gluups|LINK
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
OS: win32 x64
... animations, common, compiler, core, forms, language-service
... platform-browser, platform-browser-dynamic, router
Is anyone able to guide me to make this project work ?
Jun 11, 2019 01:56 AM|Xing Zou|LINK
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/clinpm cache clean
npm install -g @email@example.com // or whatever version you need
Or update to version 8 by running the update command via
ng update @angular/cli @angular/core
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.