avatar
文章
259
標籤
82
分類
44

首頁 Home
分類 Categories
  • 項目分類 Categories
  • 標籤 Tags
  • 書籍
  • 圖庫
  • 時間軸 Archives
休閒 Casual
  • 遊戲
  • 影片
  • 音樂
備註 Notes
  • 筆記
友鏈 Link
John Conte Blog
搜尋
首頁 Home
分類 Categories
  • 項目分類 Categories
  • 標籤 Tags
  • 書籍
  • 圖庫
  • 時間軸 Archives
休閒 Casual
  • 遊戲
  • 影片
  • 音樂
備註 Notes
  • 筆記
友鏈 Link

【Angular】error Unknow argument prod錯誤

發表於2023-07-21|更新於2025-07-28|前端技術Angular
|閱讀量:

Error Unknow argument prod

當初使用時, ng build --prod已經無法使用這指令,請使用下方指令排除現狀。

1
ng build --configuration production

備註

Angular 14 之後版本已經移除 --prod指令,改為 --configuration production。

Angular Cli

參考文件

  • ithome : https://ithelp.ithome.com.tw/articles/10195372
  • stackoverflow : https://stackoverflow.com/questions/73156911/ng-build-prod-error-unknown-argument-prod
文章作者: John Conte
文章連結: https://jontcont.github.io/2023/07/21/2023-07-21-Angular-%E7%99%BC%E4%BD%88%E6%99%82%E7%99%BC%E7%94%9F-error-Unknow-argument-prod-%E9%8C%AF%E8%AA%A4-/
版權聲明: 本部落格所有文章除特別聲明外,均採用 CC BY-NC-SA 4.0 許可協議。轉載請註明來自 John Conte Blog!
Angular
cover of previous post
上一篇
Angular (二) - component 與 router 介紹與實作
cover of next post
下一篇
【Angular】發行到IIS時,如何加入Config加入方式
相關推薦
cover
2023-01-25
Angular (一) -練習Router使用方式
cover
2023-02-10
【前端】三大前端框架 - 安裝/環境設定
cover
2023-07-20
【Angular】發行到IIS時,如何加入Config加入方式
cover
2023-07-25
Angular (二) - component 與 router 介紹與實作
cover
2023-07-26
Angular (三) - router子層作法
cover
2023-09-23
Angular (四) - component生命週期

評論
DisqusGitalk
avatar
John Conte
John Conte 的技術筆記、開發經驗與生活雜談
文章
259
標籤
82
分類
44
Follow Me
公告
This is my Blog
目錄
  1. 1. Error Unknow argument prod
    1. 1.1. 備註
    2. 1.2. Angular Cli
  2. 2. 參考文件
最新文章
[DevOps] 創建一個 docker agent2025-07-24
[DB] 使用 VS Code Query DB2025-06-18
【ChatGPT】使用學習工具篇
【ChatGPT】使用學習工具篇2025-05-12
[Benchmarks] Database Connect 效能差異
[Benchmarks] Database Connect 效能差異2024-12-22
【工具、紀錄】Reqable 手機、API一手包辦
【工具、紀錄】Reqable 手機、API一手包辦2024-12-03
©2025 By John Conte
框架 Hexo|主題 Butterfly
搜尋
資料庫載入中