我按照下面提到的链接设置本地环境并启动应用程序。
https://angular.io/docs/ts/latest/guide/setup.html
当我使用 npm start 命令启动应用程序时,它会引发错误。在指南中提到 npm start 不起作用
“截至 2017 年 1 月,Windows 版 Bash 中的 npm start 失败,它不支持与服务器联网。”
那么请告诉我如何启动 Angular 应用程序。
替代解决方案是使用 angular-cli,我认为这是启动新 angular 项目的最佳方式。这是官方文档中的链接。在 angular-cli 中创建新项目很简单
ng new app-name
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句