I\'ve got a clean install of Windows with Visual Studio 2013 Pro installed, along with current versions of Python, node and npm.
I\'m trying to install the pg
I was having similar errors with VS2015 but setting the msvs param:
npm install --msvs_version=2015
was not solving the problem. I could see that it was looking in the wrong place for the toolset no matter what I did.
Long story short I learned that MSBuild is now packaged with Visual Studio and no longer packaged with .NET. Sure enough I had this entry in the PATH variable:
C:\Windows\Microsoft.NET\Framework\v4.0.30319;
and consequently the wrong (old) version of MSBuild was being called. I removed this entry and added the following path which is relevant for VS2015:
C:\Program Files (x86)\MSBuild\14.0\Bin\
Problem solved.