ng 构建问题:错误:未知参数:base-href/

问题描述 投票:0回答:1

Issue Image

上面的错误是我在尝试使用 ng build 命令构建用于外部托管的 Angular 项目时发出的错误,有人遇到过这个问题吗?

为 Angular 项目运行 ng 构建 期望运行生成包含外部构建文件的 docs 文件夹的命令。

angularjs github-pages ng-build
1个回答
0
投票

我已经发现问题了

所以解决方案是我们需要保留命令中“href”后面的空格

    href/<repo name> is wrong href /<repo name> is correct.
Check the changes after updating the command

© www.soinside.com 2019 - 2024. All rights reserved.