npm install error - MSB3428: Could not load the Visual C++ component “VCBuild.exe”

前端 未结 16 2274
旧时难觅i
旧时难觅i 2020-11-29 14:17

I\'m trying to use the

npm install steam

but I am getting an error saying

I\'m not sure how to fix this and I have gotten

16条回答
  •  无人及你
    2020-11-29 14:56

    For those the above answer does not work, here is another possible solution to look at.

    Issue: On installing npm os-service package i was getting below error error MSB4019: The imported project "d:\M icrosoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct

    Even the installation of build tools or VS 2015 did not work for me. So I tried installing below directly via PowerShell (as admin)

    https://chocolatey.org/packages/visualcpp-build-tools/14.0.25420.1 Command: choco install visualcpp-build-tools --version 14.0.25420.1

    Once this was installed, set an environment variable VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140

    Then installation of the package worked perfectly fine after these.

提交回复
热议问题