成功编译后是否显示错误,从而阻止在angular 7项目上的浏览器上显示结果视图?

问题

我通过asp.net core 2.2制作Web API,并通过邮递员测试成功。

此后,我打开Visual Studio代码并打开我的angular 7项目以查看我的Web API结果

但是问题项目7编译成功,但浏览器无法打开

查看我的Web API结果

在完全编译成功后给我这些错误

我在终端上写

ng服务-o

它给我以下结果

i 「wdm」: Compiled successfully.
(node:8000) UnhandledPromiseRejectionWarning: Error: spawn cmd ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
(node:8000) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block,or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8000) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future,promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

如何解决此错误,以便在浏览器上查看我的结果?

实际上,我需要解决以上错误,因为它阻止了我 在浏览器上查看角度项目的结果。

我尝试升级到angular 8,但这不能解决我的问题

终端上的npm更新也无法解决我的问题

liuhongwen19 回答:成功编译后是否显示错误,从而阻止在angular 7项目上的浏览器上显示结果视图?

此错误与Angular(在端口8000上运行的Node.js应用)记录的错误无关。

本文链接:https://www.f2er.com/3155441.html

大家都在问