'ionic' is not recognised as an internal or external command

For some reason, the ionic commands can no longer run. It does not recognise any of them.
I have checked the node version, npm version, carried out a cache clear, uninstalled and reinstalled the ionic CLI but continue to get this error.
Most strange, any ideas on why it is not recognising the ionic commands.