This happens when either you are not in the directory where the nuget.exe is located or your environment variables are not set for it. Make sure you have downloaded NuGet.exe. Navigate to it and right click, then click on properties. ... Navigate to Control Panel > System > Advanced System Settings > Environment Variables.