Angular 找不到API编译器cli,函数版本错误:找不到API编译器cli,函数版本
我创建了一个新的angular 6应用程序,当我尝试使用ng serve-open运行该应用程序时,会出现此错误。可能是什么原因导致错误,我应该怎么做才能修复此错误 试试这个Angular 找不到API编译器cli,函数版本错误:找不到API编译器cli,函数版本,angular,angular6,Angular,Angular6,我创建了一个新的angular 6应用程序,当我尝试使用ng serve-open运行该应用程序时,会出现此错误。可能是什么原因导致错误,我应该怎么做才能修复此错误 试试这个 Step 1: npm install -g @angular/cli@latest Step 2: ng new name-of-project (ignore if project already created) Step 3: cd name-of-project (ignore if project alre
Step 1: npm install -g @angular/cli@latest
Step 2: ng new name-of-project (ignore if project already created)
Step 3: cd name-of-project (ignore if project already created)
Step 4: npm install @angular/cli --save-dev
Step 5: npm install @angular/compiler-cli --save-dev
Step 6: ng serve
Step 1: npm install -g @angular/cli@latest
Step 2: ng new name-of-project (ignore if project already created)
Step 3: cd name-of-project (ignore if project already created)
Step 4: npm install @angular/cli --save-dev
Step 5: npm install @angular/compiler-cli --save-dev
Step 6: ng serve