gpt4 book ai didi

node.js - 无法确定 Architect 命令 Angular 的项目或目标

转载 作者:IT老高 更新时间:2023-10-28 23:06:53 24 4
gpt4 key购买 nike

C:\Users\muhiuddin.TOWERTECH\test\testapp>ng build --target=production

C:\Users\muhiuddin.TOWERTECH\test\testapp>ng run

当我运行一个新项目或构建它时,出现“无法确定 Architect 命令的项目或目标”错误。我是 Angular 的新手。请给我简单的解决方案。

Angular CLI: 6.0.8
Node: 9.3.0
OS: win32 x64
Angular: 6.0.7
>Cannot determine project or target for Architect command.
Error: Cannot determine project or target for Architect command.
at MergeMapSubscriber._loadWorkspaceAndArchitect.pipe.operators_1.concatMap [as project] (C:\Users\muhiuddin.TOWERTECH\test\testapp\node_modules\@angular\cli\models\architect-command.js:62:27)
at MergeMapSubscriber._tryNext (C:\Users\muhiuddin.TOWERTECH\test\testapp\node_modules\rxjs\internal\operators\mergeMap.js:65:27)
at MergeMapSubscriber._next (C:\Users\muhiuddin.TOWERTECH\test\testapp\node_modules\rxjs\internal\operators\mergeMap.js:55:18)
at MergeMapSubscriber.Subscriber.next (C:\Users\muhiuddin.TOWERTECH\test\testapp\node_modules\rxjs\internal\Subscriber.js:64:18)
at TapSubscriber._next (C:\Users\muhiuddin.TOWERTECH\test\testapp\node_modules\rxjs\internal\operators\tap.js:62:26)
at TapSubscriber.Subscriber.next (C:\Users\muhiuddin.TOWERTECH\test\testapp\node_modules\rxjs\internal\Subscriber.js:64:18)
at MergeMapSubscriber.notifyNext (C:\Users\muhiuddin.TOWERTECH\test\testapp\node_modules\rxjs\internal\operators\mergeMap.js:84:26)
at InnerSubscriber._next (C:\Users\muhiuddin.TOWERTECH\test\testapp\node_modules\rxjs\internal\InnerSubscriber.js:25:21)
at InnerSubscriber.Subscriber.next (C:\Users\muhiuddin.TOWERTECH\test\testapp\node_modules\rxjs\internal\Subscriber.js:64:18)
at MapSubscriber._next (C:\Users\muhiuddin.TOWERTECH\test\testapp\node_modules\rxjs\internal\operators\map.js:52:26)

最佳答案

用途:

ng serve

参见 angular CLI 文档 - https://github.com/angular/angular-cli/wiki

关于node.js - 无法确定 Architect 命令 Angular 的项目或目标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51221135/

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