文件>新建>项目 Visual c#> .NETCore> ASP.NET Core Web应用程序> Angular
我运行该应用后,它没有没有错误并且在 Google Chrome
中显示正常我想将项目升级到angular6。但是当我收到错误消息时,例如:
Local workspace file ('angular.json') could not be found.
Error: Local workspace file ('angular.json') could not be found.
Severity Code Description Project File Line Suppression State
Error TS2307 (TS) Cannot find module '@angular/core'.
Severity Code Description Project File Line Suppression State
Error TS2307 (TS) Cannot find module '@angular/common/http'.
Package "bootstrap" has a missing peer dependency of "jquery" @ "1.9.1 - 3".
Package "@angular/compiler-cli" has an incompatible peer dependency to "typescript" (requires ">=2.7.2 <2.10", would install "3.0.3").
Incompatible peer dependencies found. See above.
在更新项目时,我遵循了this 然后设置版本 5.2-6.1。 应用复杂度为基本** ngUpgrade,取消选中程序包管理器 npm。
我做了:
npm install -g @angular/cli
npm install @angular/cli
ng update @angular/cli
ng update @angular/core
ng update @angular/material
npm install -g rxjs-tslint
rxjs-5-to-6-migrate -p src/tsconfig.app.json
我上面的步骤没有做,仅是缺少什么,还是一个错误?
我正在使用VS studio作为我的IDE