Last post Nov 06, 2019 09:23 AM by Brando ZWZ
Nov 06, 2019 12:57 AM|ahmedbarbary|LINK
I make web api by asp.net core 2.2 and i test success
after that i open visual studio code and open my angular project
but problem it compiled success but browser not open to see my result of web api
and give me these error after compile success fully
i write on terminal
ng serve -o
it give me results as below
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.
How to solve this error and how to show browser to see my result please ?
Nov 06, 2019 09:23 AM|Brando ZWZ|LINK
It seems there is another application has already used the 8000 port, I suggest you could try to use another port to servce your application.
If this doesn't solve your issue, I suggest you could try to udate the angular to the newest version and try again.