'ionic' is not recognized as internal or external command.....How to set environment variable for this?

‘ionic’ is not recognized as internal or external command…How to set environment variable for this?

Try reinstalling ionic globally
npm install -g ionic

If issue still continues then verify that other global npm packages are working fine or not.
If not then try repairing node setup

have you solve this issue? i have the same problem.
did you set environment variable?