【问题标题】:hiredis rebuild with .net framework 2.0 errorhiredis 使用 .net 框架 2.0 错误重建
【发布时间】:2019-10-08 20:39:53
【问题描述】:

我尝试删除并安装 .net framework 3.5(包括 2.0)的相关文件。 Suggested in this stackoverflow

尝试按照错误中建议的第二件事中的建议安装 Visual Studio 2005。

我在 node_modules 下找不到hiredis 文件夹。

按照stackoverflow 中的建议,我尝试清理缓存并删除 node_modules 并重新安装。

MSBUILD : 
error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 
1) install the .NET Framework 2.0 SDK, 
2) install Microsoft Visual Studio 2005 or 
3) add the location of the component to the system path if it is installed elsewhere.  
[D:\path\src\node_modules\hiredis\build\binding.sln]

在图片中找到完整的错误。

【问题讨论】:

    标签: npm-install hiredis


    【解决方案1】:

    这显然是人们作为窗口用户遇到的常见错误。

    如果您最近将您的 Visual Studio 更新到新版本,例如 2012 及更高版本,您会看到与上述类似的情况。

    这方面有文章,如果你使用正确的搜索键,这里是其中之一,作者详细解释。 link

    三种解决方案:

    1) npm install -g windows-build-tools stackoverflow

    2) 安装 Visual Studio 10 -> npm clear cache --force -> 删除 node_modules/ -> 删除 package-lock.js npm config set msvs_version 2010 -g

    3) 手动下载 neccaries 文件然后 npm config set msvs_version -g github

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-10-19
      • 2015-04-19
      • 2015-12-21
      • 2013-03-31
      • 1970-01-01
      • 2013-08-03
      • 1970-01-01
      相关资源
      最近更新 更多