'node' is not recognized as


hello guys,
i was building ionic 2 app for a while now and every thing was working fine but now i am facing this problem when i type ionic serve on cmd (it was working fine) :
‘node’ is not recognized as an internal or external command,
operable program or batch file.

i reset node.js folder path into system variables but that didn’t solve the problem


i updated node and that fixed the problem