天天看點

yarn ngc使用練習

使用ng new module建立一個新的Angular項目:

yarn ngc使用練習

ng new後面跟的字元串就是Angular項目的檔案夾名稱:

yarn ngc使用練習

錯誤消息:No inputs were found in config file tsconfig.json. Specified include paths where XXX and exclude paths were XXX

yarn ngc使用練習

直接運作yarn指令:

fetching packages:

yarn ngc使用練習

本地yarn檔案安裝位址:

yarn ngc使用練習

yarn ngc -p:

compiler option project expects an argument

-p 參數後面必須跟配置檔案位址

yarn ngc使用練習

繼續閱讀