使用Angular CLI

命令行启动Angular应用

npm install -g @angular/cli安装:

命令行启动Angular应用

命令行启动Angular应用

完毕之后ng serve:

命令行启动Angular应用

Your global Angular CLI version (7.3.3) is greater than your local
version (7.3.0). The local Angular CLI version is used.

To disable this warning use “ng config -g cli.warnings.versionMismatch false”.
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **

Date: 2019-02-22T08:31:30.608Z
Hash: 810be7199f55b6df4b1c
Time: 15371ms
chunk {main} main.js, main.js.map (main) 38.2 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 223 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 1.15 MB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 4.19 MB [initial] [rendered]
i 「wdm」: Compiled successfully.
浏览器里输入localhost:4200,ok了:

命令行启动Angular应用

要获取更多Jerry的原创文章,请关注公众号"汪子熙":
命令行启动Angular应用

相关文章:

  • 2021-11-01
  • 2021-11-17
  • 2021-08-10
  • 2021-08-26
  • 2021-11-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-14
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2018-01-26
相关资源
相似解决方案