安装socket.io的问题

时间:2013-03-21 16:20:55

标签: node.js socket.io

我正在开发一个需要Node.jsSocket.io的程序。尝试安装两者后,我发现“Node.js”没有任何不便,但在CMD中输入npm install socket.io时遇到错误:

C:\Users\otori\node_modules\socket.io\node_modules\socket.io-client\node_module s\ws\build\binding.sln : MSBUILD : error MSB3411: Could not load the Visual C++ component "VCBuild.exe". If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008.

错误代码:error MSB3411

看来我的node.js或我的CMD找不到VCBuild.exe并且要求我安装VS2008,我已经安装了VS2008(我也尝试过使用VS 2010)。

非常感谢任何帮助或指导,我使用的是Windows 8 x64和node.js v0.10.1

1 个答案:

答案 0 :(得分:1)

很抱歉找到一个旧问题,但你的问题是我搜索“Socket.io VCBuild”时的第一个结果

我找到的解决方案,在磕磕绊绊之后是:

npm install socket.io --msvs_version = 2012

npm install sqlite3 --msvs_version = auto