Angular 5新的干净项目,Firefox错误

时间:2018-04-17 08:36:03

标签: node.js angular npm angular-cli angular5

我创建了一个名为company的新项目,就像angular.io教程所说的那样。

ng company

cd company

ng serve --host example.com

当我用chrome打开example.com:4200时,它工作正常。 当我尝试使用Firefox时,我在控制台中收到以下错误:

enter image description here 更新:文字错误:

[WDS] Disconnected!                                          index.js:176:5
close                           webpack-internal:///./node_modules/webpack-dev-server/client/index.js:176:5

onclose                                                      socket.js:17

[5]</EventTarget.prototype.dispatchEvent                     sockjs.js:170

[14]</</SockJS.prototype._close/<                            sockjs.js:965

ZoneDelegate.prototype.invokeTask                              zone.js:421

Zone.prototype.runTask                                         zone.js:188

ZoneTask.invokeTask                                             zone.js:496

ZoneTask/this.invoke                                            zone.js:485

timer                                                          zone.js:2054

Firefox版本:59.0.2(64位)

该项目是新的,我没有添加任何代码行,只是在firefox中断开连接。

当我创建项目时,我收到了以下警告:

npm WARN deprecated nodemailer@2.7.2: All versions below 4.0.1 of Nodemailer are deprecated. See https://nodemailer.com/status/

npm WARN deprecated node-uuid@1.4.8: Use uuid module instead.

npm WARN deprecated socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0

npm WARN deprecated socks@1.1.9: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0

npm WARN deprecated mailcomposer@4.0.1: This project is unmaintained

npm WARN deprecated buildmail@4.0.1: This project is unmaintained

npm WARN prefer global node-gyp@3.6.2 should be installed with -g

我尝试安装新版袜子,但没有帮助:

为什么会断开连接的想法?

由于

0 个答案:

没有答案