Open command prompt and type $ npm install -g nativescript
In the command prompt type $ @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))" - this might take a while
To verify the above has worked, type $ tns doctor in command prompt (your cmd)