【问题标题】:npm install bcrypt on Windows Server 2012npm 在 Windows Server 2012 上安装 bcrypt
【发布时间】:2016-04-05 21:33:41
【问题描述】:

我在尝试为我的节点服务器安装节点模块时收到此错误。

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.
[C:\inetpub\wwwroot\PearsonRealty-   API\node_modules\bcrypt\build\binding.sln]

我尝试安装 .NET Framework 2.0 SDK,但它只是退出并且永远不会运行。我无法安装 Microsoft Visual Studio,因为我在 AWS EC2 实例上,而且我没有足够的空间来安装它。任何帮助都会很棒,谢谢。

【问题讨论】:

    标签: node.js npm windows-server-2012 bcrypt windows-server-2012-r2


    【解决方案1】:

    您确实需要安装 VCExpress(最好至少 2015 年)您可以尝试实验性的 VC Build Tools solution,它比成熟的 VCExpress 更小。否则,如果你有的话,你可以先尝试在本地 Windows 机器上构建,然后将编译好的插件目录上传到 AWS。

    【讨论】:

      猜你喜欢
      • 2014-06-19
      • 1970-01-01
      • 1970-01-01
      • 2012-12-26
      • 1970-01-01
      • 2014-11-09
      • 2018-03-16
      • 1970-01-01
      • 2015-04-01
      相关资源
      最近更新 更多