ローカルワークスペースファイル( 'angular.json')が見つかりませんでした。
Local Workspace File Angular
実行時間は次のエラーを報告しました
Local workspace file ('angular.json') could not be found. Error: Local workspace file ('angular.json') could not be found. at WorkspaceLoader._getProjectWorkspaceFilePath (D:
odejs
ode_global
[email protected]:44: 19) at WorkspaceLoader.loadWorkspace (D:
odejs
ode_global
[email protected]:31:21) at ServeCommand._loadWorkspaceAndArchitect (D:
odejs
ode_global
[email protected]:201:32) at ServeCommand. (D:
odejs
ode_global
[email protected]:53:25) at Generator.next () at D:
odejs
ode_global
[email protected]:7:71 at new Promise () at __awaiter (D:
odejs
ode_global
[email protected]:3:12) at ServeCommand.initialize (D:
odejs
ode_global
[email protected]:52:16) at Object. (D:
odejs
ode_global
[email protected]:127:23)
与えられた理由:角度/ CLIバージョンがプロジェクトリードと一致しないことが原因である可能性があります
解決:
角度/ CLIをアップグレードする
1.グローバルアンロード角度/ CLI
npm uninstall -g @angular/cli
2.掃除する
npm cache verify
3.インストールグローバル角度/ CLI
npm install -g @angular/root@xxxxx
4.プロジェクトパスでアンロードされたangluar / cli
npm uninstall --save-dev @angular/cli
5.プロジェクトパスへのインストール:
npm install --save-dev @angular/root@xxxxx
6.npmインストールパスアイテムまたはyarnインストールの下
7. npmのインストール後、問題を修正します。
npm audit fix
8.「angular.json」の質問を解決します。
ng update @angular/cli --migrate-only --from=1.4.9