spawn cmd ENOENT

0

I have an error when I start the server in Angular, it does not affect me in functionality, but I would like to correct it, since with the NPM it gives me installation errors.

This is the error:

$ ng serve -o
** Angular Live Development Server is listening on localhost:4200, open your     
browser on http://localhost:4200/ **

Date: 2018-12-19T14:50:05.900Z
Hash: 8080c18c706c004f0948
Time: 8731ms
chunk {main} main.js, main.js.map (main) 8.63 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 223 kB 
[initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.08 kB [entry] 
[rendered]
chunk {styles} styles.js, styles.js.map (styles) 16.3 kB [initial] 
[rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 3.43 MB [initial] 
[rendered]
i 「wdm」: Compiled successfully.
(node:2400) UnhandledPromiseRejectionWarning: Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16).....

The Technical Details are:

Sistema Operativo  Windows
Node  10.14.2 
@angular cli 7.1.3
@angular-devkit/architect 0.11.3 
@angular-devkit/core 7.1.3 
@angular-devkit/schematics 7.1.3 
@schematics/angular 7.1.3 
@schematics/update 0.11.3 
rxjs 6.3.3 
typescript 3.1.
    
asked by Jonnathan Carrasco 18.12.2018 в 20:39
source

1 answer

0

You must add the CMD route to the windows PATH, the route you must add is the following:

C:\Windows\System32
    
answered by 19.12.2018 в 14:53