2013-03-21 98 views
3

我正在开发一个程序,需要Node.jsSocket.io。试图同时安装后,我发现没有什么不便与“Node.js的”,但遇到错误,在CMD输入npm install socket.io时:安装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(我也试过VS 2010)。

任何帮助或指导深表赞赏,使用Windows 8 x64和node.js的v0.10.1

+1

那么,您是否尝试安装.NET Framework 3.5? – GiveMeAllYourCats 2014-01-07 13:49:43

回答

1

对不起IM挖了一个老问题,但你的问题是,当我搜索“插座的第一个结果。 IO VCBuild”

我发现的溶液,绊周围之后是:

NPM安装socket.io --msvs_version = 2012

npm install sqlite3 --msvs_version = auto