ng serve 后出现问题:

【angular】you have to be inside an Angular CLI project in order to use the serve command

出错原因:

打开文件夹的路径不对

正确步骤:

1、打开文件夹

【angular】you have to be inside an Angular CLI project in order to use the serve command

2、选择其中含有“e2e”、“src”的文件夹,打开就行

【angular】you have to be inside an Angular CLI project in order to use the serve command

【angular】you have to be inside an Angular CLI project in order to use the serve command

3、再次 ng serve,成功

【angular】you have to be inside an Angular CLI project in order to use the serve command

我出的错误:

打开了本应打开的文件夹的上一级。

【angular】you have to be inside an Angular CLI project in order to use the serve command

相关文章: