【问题标题】:error in application building in angularcli在 Angular cli 中构建应用程序时出错
【发布时间】:2022-07-22 16:51:58
【问题描述】:
PS E:\angular new> ng serve -o      
The serve command requires to be run in an Angular project, but a project definition could not be found.
PS E:\angular new> cd project-second
PS E:\angular new\project-second> ng serve -o      
? Port 4200 is already in use.
Would you like to use a different port? No
An unhandled exception occurred: Port 4200 is already in use. Use '--port' to specify a different port.
See "C:\Users\HP\AppData\Local\Temp\ng-ASaxs1\angular-errors.log" for further details.

【问题讨论】:

    标签: angular-cli


    【解决方案1】:

    你试过了吗:

    PS E:\angular new\project-second> ng serve -o      
    ? Port 4200 is already in use.
    Would you like to use a different port? Yes
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-11-02
      • 1970-01-01
      • 1970-01-01
      • 2018-04-24
      • 1970-01-01
      • 2017-03-01
      • 1970-01-01
      相关资源
      最近更新 更多