angularjs - 启动时出现 Angular-cli ng 服务器错误

标签 angularjs angular-cli

我已经安装了 angular-cli 并尝试“ng 服务”通过“ng new [BLAH]FrontEnd”创建的 Angular 项目,但我收到了这些错误:

pastebin:http://pastebin.com/QB1D5PsF

这是怎么回事。当我导航到http://localhost:4200/时我明白了:

Uncaught Error: Cannot find module "webpack-dev-server/client?http://localhost:4200/"(…)

最佳答案

尝试用 npm start 而不是 ngserve 来运行服务器 http://localhost:4200/

关于angularjs - 启动时出现 Angular-cli ng 服务器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40483222/

相关文章:

`ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points` 上的 Angular 错误

javascript - 当在 ui-view 内部使用 ng-include 时出现错误

javascript - 附加到 AngularJS 过滤器对象时 ".$"的意义

javascript - Angular 1.7 绑定(bind)数据问题

javascript - AngularJS:使用过滤器将数组拆分为数组

angular - Pug 支持 Angular 2/Angular 4/Angular 6/Angular cli/Angular cli 6(无需自定义 WebPack 配置)

javascript - Angular ui-router 和具有嵌套状态的后退按钮

unit-testing - Angular 2 TestModuleMetadata 没有 EntryComponents 属性

Angular 2 CLI 这么多时间编译

asp.net - Angular-CLI .NET Core 中的index.html 是如何调用的?