error display after compile successfully prevent show browser angular 7 ?

188 views
Skip to first unread message

ahmed elbarbary

unread,
Nov 5, 2019, 7:55:36 PM11/5/19
to Angular and AngularJS discussion

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 ?

Sander Elias

unread,
Nov 6, 2019, 1:20:47 AM11/6/19
to Angular and AngularJS discussion
Hi Ahmen,

Without knowing any versions, of anything you use, and without source it is hard to help you.
A wild guess would be, remove the `node_modules` folder and do an `npm install` an try again?

Regards
Sander


ahmed elbarbary

unread,
Nov 6, 2019, 9:20:33 PM11/6/19
to Angular and AngularJS discussion
thank you for reply 
i make as above remove node_module then make npm install
but still problem exist 
project stop working

Arnaud Deman

unread,
Nov 9, 2019, 5:47:18 AM11/9/19
to Angular and AngularJS discussion
Hi Ahmed,

As you mentioned asp.net, I think you are using Windows.
I found this thread which could be the solution. It is relative to cordova but it seems to be very close to your pb.

This error could be due to a problem in your configuration system: C:\Windows\System32\ not set in system variables.

I am using Linux so I can't test it but I hope this will help you,
regards,
Arnaud.
Reply all
Reply to author
Forward
0 new messages