Issues installing nativescript


so i have been trying out nativescript for sometime now in order to use it for my project for undergraduate degree. everything was working fine when i last checked. i went back to it again and nothing seems to be working.
i did a fresh install of everything and problem still persist.

i run tns and this is what i get :

‘tns’ is not recognized as an internal or external command,
operable program or batch file.

i am using winows 10.

any help will be much appreciated. Thank you


If tns is not recognised then you do, npm i -g nativescript