NPM packages are not building on Windows 8.1 - failing with following error,
error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
I have tried the following,
VCTargetsPath
to C:\Program Files (x86)\MSBuild\12.0\
(The error changes accordingly but there is no Microsoft.Cpp.Default.props
with the 2012 build tools).Node-gyp
wiki VisualStudioVersion
before running npm according to this answer --msvs_version=2012
to npm according to this answer None of the above have worked.
I've spent ages on this already. Does anyone have a definite answer that works?
The quick fix for me was this:
set VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120 npm install
Finally Microsoft is providing much better solution to VS.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With