error MSB3411: Could not l oad the Visual C++ component “VCBuild.exe”

前端 未结 4 1622
野的像风
野的像风 2020-12-08 17:20

I have Visual Studio 2010 with SP1 and Windows sdk 7.1. I also have VS2012 and Windows kit 8.

when i run Windows SDK 7.1 Command Prompt and run no

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 17:30

    The answer to all your question lies here. Struggled a lot to find this. Finally got it working. =)

    Just to save you time visiting the link here is what's useful in that link.

    INSTRUCTIONS:

    You can install with npm:

    $ npm install -g node-gyp
    

    You will also need to install:

    On Unix:

    • python (v2.7 recommended, v3.x.x is not supported)

    • make A proper C/C++ compiler toolchain, like GCC

    On Windows:

    • Python (v2.7.3 recommended, v3.x.x is not supported)

    • Windows XP/Vista/7: Microsoft Visual Studio C++ 2010 (Express version works well)

    • For 64-bit builds of node and native modules you will also need the Windows > 7 64-bit SDK

    • If the install fails,

      • try uninstalling any C++ 2010 x64&x86 Redistributable that you have installed first.

      • If you get errors that the 64-bit compilers are not installed you may also need the compiler update for the Windows SDK 7.1

    Windows 7/8:

    • Microsoft Visual Studio C++ 2012/13 for Windows Desktop (Express version works well)

    • If you have multiple Python versions installed, you can identify which Python version node-gyp uses by setting the '--python' variable:

    $ node-gyp --python /path/to/python2.7
    

    If node-gyp is called by way of npm and you have multiple versions of Python installed, then you can set npm's 'python' config key to the appropriate value:

    $ npm config set python /path/to/executable/python2.7
    

提交回复
热议问题