ng has unexpectedly closed (exit code 127).
snippet in javascript

ng has unexpectedly closed (exit code 127).

user7425

npm install @ionic/app-scripts@latest --save-dev
// being in root directory of your project