简体   繁体   English

ng serve 此页面无法正常工作

[英]ng serve This page isn't working

I'm running through the angular-cli tutorial, and the NG Live Development server doesn't seem to launch (No response on http://localhost:8080 ) with no errors in console.我正在运行 angular-cli 教程,并且 NG Live Development 服务器似乎没有启动(在http://localhost:8080上没有响应),控制台中没有错误。 This is a blank project with no code created using:这是一个没有使用以下代码创建的空白项目:

ng new test-app
cd test-app
ng serve

在此处输入图像描述

I've tried ng serve --host 0.0.0.0 ng serve --host 0.0.0.0 --port 4201 with multiple ports.我试过ng serve --host 0.0.0.0 ng serve --host 0.0.0.0 --port 4201有多个端口。 I've made sure there is nothing listening on those ports.我确保这些端口上没有任何东西在监听。

Environment: Windows 10 (1709)环境:Windows 10 (1709)

@angular/cli: 1.6.7
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.7
@schematics/angular: 0.1.17
typescript: 2.5.3
webpack: 3.10.0

在此处输入图像描述

Is there a log that could provide more information?有没有可以提供更多信息的日志? I haven't been able to find anyone having trouble on this basic step.我找不到任何人在这个基本步骤上遇到问题。 Cheers.干杯。

如果您在机器中使用 docker,请尝试删除 docker 桌面中的所有文件,它对我有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM