When you try to run Magento 2 and if you get above error,
copy this code
Go to your Magento 2 root folder.
Open the Git Bash ( I think this will work on command prompt as well )
Paste the code and Enter.
It will execute and once it completed, Run Magento 2.