[英]Angular cli - ng command open the ng file
我有一個 Angular 項目,如果我想用 'ng serve' 開始該項目,它會從以下位置打開 ng 文件
C:\\Users{user}\\AppData\\Roaming\\npm\\node_modules\\@angular\\cli\\bin
另外,我可以使用“npm start”啟動項目。
問題是我在 powershell 中使用了 ng。 在 cmd 工作中..
從環境變量 - 路徑中刪除路徑“C:\\Users{user}\\AppData\\Roaming\\npm\\node_modules@angular\\cli\\bin”。 它對我有用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.