Cli: local_cli_not_found

Am getting an error shown below. So far haven’t found the solution from this forum except promises of it getting checked on.
The image shown below shows the server start and terminate on it’s own

This one shows that local cli not found. i didn’t get this error before until i re-installed windows and installed ionic properly.

ANyone with a quick solution? Please

Try the commands below

npm install -g ionic@latest
npm install @ionic/app-scripts@latest --save-dev
npm install ionic-angular@latest --save
ionic serve

Hope it works!

Thanks for the quick help but nothing works, let me try an older version and see

If it persist try this

npm install --save-dev --save-exact ionic@latest