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

前端 未结 16 2201
旧时难觅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 15:06

    i know this is old, i actually just had the same issue. i was able to solve it by running npm install -g node-gyp and fixed! npm

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

    I tried the above suggested npm install --global --production windows-build-tools but found that the installation was always hanging forever.

    I managed to fix the problem by installing Node.js 8 instead of Node.js 10.

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

    The problems here are to do with the npm node-gyp module

    I found the solutions offered on the build page for that project effective.

    node-gyp page on github

    There's a fully automatic way and a manual way.

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

    Just to add to the above answer, anyone finding an issue of the installers taking forever, I found my issue was python, I uninstalled both my versions 3 and versions 2.

    The re-ran the command in PowerShell terminal as the admin and it installed almost straight away.

    npm install --global --production windows-build-tools 
    
    0 讨论(0)
  • 2020-11-29 15:12

    1)install "lite server" and then try below command :
    npm run lite

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

    Try this from cmd line as Administrator

    optional part, if you need to use a proxy:

    set HTTP_PROXY=http://login:password@your-proxy-host:your-proxy-port
    set HTTPS_PROXY=http://login:password@your-proxy-host:your-proxy-port
    

    run this:

    npm install -g --production windows-build-tools
    

    No need for Visual Studio. This has what you need.

    References:

    https://www.npmjs.com/package/windows-build-tools
    https://github.com/felixrieseberg/windows-build-tools

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