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

前端 未结 16 2199
旧时难觅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:52

    PLEASE FOLLOW THE FLOW CORRECTLY WINDOWS 10x64

    1. Powershell run as administrator
    2. npm install -g node-gyp
    3. npm install --global --production windows-build-tools
    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2020-11-29 14:57

    npm install --global windows-build-tools

    just run this command via powershell (right click and run as administrator!)

    worked for me..

    0 讨论(0)
  • 2020-11-29 15:01

    For me worked install the component "VCBuild.exe", just dowload the wizard, install and them open the cmd again as administrator and try run again. Updated link to dowload the wizard here

    0 讨论(0)
  • 2020-11-29 15:03

    I know it's a very old question, but is the first in my google search and after some time I got how to solve this.

    find node on your windows with
    $ npm install -g which
    $ which node
    after cd into the directory, inside the directory cd into node_modules\npm folder and finally:
    $ npm install node-gyp@latest
    here worked, the answer is from this site

    0 讨论(0)
  • 2020-11-29 15:04

    Tried npm install mongoose --msvs_version=2012, if you have multiple Visual installed, it worked for me

    0 讨论(0)
提交回复
热议问题