locked
error display after compile successfully prevent show browser result view angular 7 RRS feed

  • Question

  • User696604810 posted



    Problem


    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 ?

    Wednesday, November 6, 2019 12:57 AM

All replies

  • User283571144 posted

    Hi ahmedbarbary,

    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.

    Best Regards,

    Brando

    Wednesday, November 6, 2019 9:23 AM