我正在尝试Socket.io
在 Windows Server 2012 上安装
npm install socket.io
我得到的错误是
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 Visua
l Studio 2005 or 3) add the location of the component to the system path if it
is installed elsewhere. [D:\PushNotificationServer\node_modules\socket.io\node
_modules\socket.io-client\node_modules\ws\build\binding.sln]
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 Visua
l Studio 2005 or 3) add the location of the component to the system path if it
is installed elsewhere. [D:\PushNotificationServer\node_modules\socket.io\node
_modules\socket.io-client\node_modules\ws\build\binding.sln]
socket.io@0.9.6 node_modules\socket.io
├── policyfile@0.0.4
├── redis@0.6.7
└── socket.io-client@0.9.6 (xmlhttprequest@1.2.2, uglify-js@1.2.5, active-x-obfu
scator@0.0.1, ws@0.4.31)
我已经安装了框架 2.0,但我必须购买 Visual Studio 2005 的许可证才能安装在服务器上吗?还是真的需要安装?还是有一些服务器版本的替代编译器?
我的问题背后的原因是在 windows server 2008 上完成的相同设置不会引发任何错误。我没有在 Windows Server 2008 上安装任何特别的东西。 问题仅出在 Server 2012 上。可能的出路是什么?