1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular - An unhandled exception occurred: spawn UNKNOWN

Discussão em 'Angular' iniciado por Ayobamilaye, Outubro 8, 2024.

  1. Ayobamilaye

    Ayobamilaye Guest

    In Angular-13 project I have a project that has been working very fine. But suddenly, when I did ng serve I got this error:

    An unhandled exception occurred: spawn UNKNOWN
    See "C:\Users\JOSHU~1.IBE\AppData\Local\Temp\ng-i3hvNX\angular-errors.log" for further details.


    The error log gives:

    [error] Error: spawn UNKNOWN
    at ChildProcess.spawn (node:internal/child_process:413:11)
    at Object.spawn (node:child_process:700:9)
    at baseOpen (C:\MyProject\LMS-UI\node_modules\open\index.js:205:34)
    at async MergeMapSubscriber.project (C:\MyProject\LMS-UI\node_modules\@angular-devkit\build-angular\src\builders\dev-server\index.js:220:21)


    I did this:

    1. remove node_modules rm -rf node_modules or just delete them
    2. run npm i or npm i --only=dev(only when all modules are already installed just need to save the dev dependencies)
    3. run ng serve or npm start
    ​

    But the problem still remains.

    How do I resolve the problem?

    Thank you

    Continue reading...

Compartilhe esta Página