gpt4 book ai didi

Angular CLI 错误 : The serve command requires to be run in an Angular project, 但找不到项目定义

转载 作者:太空狗 更新时间:2023-10-29 16:45:12 25 4
gpt4 key购买 nike

当运行终端命令 ng serverng serve --live-reload=true 时,我遇到了这个问题:

The serve command requires to be run in an Angular project, but a project definition could not be found.

最佳答案

我也遇到了这个问题并通过运行以下命令解决了。

ng update @angular/cli --migrate-only --from=<WhateverVersionYouAreCurrentlyOn>

例如

ng update @angular/cli --migrate-only --from=1.7.3

here 获取引用

关于Angular CLI 错误 : The serve command requires to be run in an Angular project, 但找不到项目定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53096996/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com