[ERROR] ng has unexpectedly closed (exit code 127)

When I enter ionic serve, I get this error message

ng.cmd run app:serve --host=localhost --port=8100
[ERROR] ng has unexpectedly closed (exit code 127).

Edit: solved!

One of the folders in the served path contained a “!” character. Served just fine once the folder’s name was changed.

– Original Message:
Encountering the same issue. Mine is a first-time install on Windows 10. I encountered the error on trying to serve $ ionic serve the tabs starter app.

hello I meet the same problem please how to solve it?

I am getting exit code 127 error.
I tried this but it’s not working for me.
can anyone help to solve this error?

1 Like

Can you be more specific, please tell me where and how to fix it? I am totally new in Ionic and don’t know a thing