Sockets.io生成错误,致命错误c1083,请指教

我想解压一个nodejs模块socket.io。 我得到一个生成错误来安装Visual的stdio 2005和.net framework2 sdk,所以我做到了。 现在我收到以下错误没有build议如何解决它。 请帮帮我。

我正在使用vista,32位。

您的环境已经设置为使用Node.js 0.8.18(ia32)和NPM

C:\Users\shane>CD C:\nodefiles C:\NodeFiles>npm install socket.io npm http GET https://registry.npmjs.org/socket.io npm http 304 https://registry.npmjs.org/socket.io npm http GET https://registry.npmjs.org/base64id/0.1.0 npm http GET https://registry.npmjs.org/redis/0.7.3 npm http GET https://registry.npmjs.org/policyfile/0.0.4 npm http GET https://registry.npmjs.org/socket.io-client/0.9.11 npm http 304 https://registry.npmjs.org/base64id/0.1.0 npm http 304 https://registry.npmjs.org/policyfile/0.0.4 npm http 304 https://registry.npmjs.org/redis/0.7.3 npm http 304 https://registry.npmjs.org/socket.io-client/0.9.11 npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2 npm http GET https://registry.npmjs.org/uglify-js/1.2.5 npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1 npm http GET https://registry.npmjs.org/ws npm http 304 https://registry.npmjs.org/ws npm http 304 https://registry.npmjs.org/uglify-js/1.2.5 npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2 npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1 npm http GET https://registry.npmjs.org/zeparser/0.0.5 npm http 304 https://registry.npmjs.org/zeparser/0.0.5 npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/tinycolor npm http GET https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/commander npm http 304 https://registry.npmjs.org/tinycolor npm http 304 https://registry.npmjs.org/options > ws@0.4.25 install C:\NodeFiles\node_modules\socket.io\node_modules\socket.io-c lient\node_modules\ws > (node-gyp rebuild 2> builderror.log) || (exit 0) C:\NodeFiles\node_modules\socket.io\node_modules\socket.io-client\node_modules\w s>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_mo dules\node-gyp\bin\node-gyp.js" rebuild 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. [C:\NodeFiles\node_modules\socket.io\node_modules\sock et.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. [C:\NodeFiles\node_modules\socket.io\node_modules\sock et.io-client\node_modules\ws\build\binding.sln] socket.io@0.9.13 node_modules\socket.io ├── base64id@0.1.0 ├── policyfile@0.0.4 ├── redis@0.7.3 └── socket.io-client@0.9.11 (xmlhttprequest@1.4.2, uglify-js@1.2.5, active-x-obf uscator@0.0.1, ws@0.4.25) C:\NodeFiles>npm install socket.io ^CTerminate batch job (Y/N)? y C:\NodeFiles>npm install socket.io npm http GET https://registry.npmjs.org/socket.io npm http 304 https://registry.npmjs.org/socket.io npm http GET https://registry.npmjs.org/socket.io-client/0.9.11 npm http GET https://registry.npmjs.org/policyfile/0.0.4 npm http GET https://registry.npmjs.org/base64id/0.1.0 npm http GET https://registry.npmjs.org/redis/0.7.3 npm http 304 https://registry.npmjs.org/redis/0.7.3 npm http 304 https://registry.npmjs.org/policyfile/0.0.4 npm http 304 https://registry.npmjs.org/base64id/0.1.0 npm http 304 https://registry.npmjs.org/socket.io-client/0.9.11 npm http GET https://registry.npmjs.org/uglify-js/1.2.5 npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2 npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1 npm http GET https://registry.npmjs.org/ws npm http 304 https://registry.npmjs.org/uglify-js/1.2.5 npm http 304 https://registry.npmjs.org/xmlhttprequest/1.4.2 npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1 npm http 304 https://registry.npmjs.org/ws npm http GET https://registry.npmjs.org/zeparser/0.0.5 npm http GET https://registry.npmjs.org/commander npm http GET https://registry.npmjs.org/options npm http GET https://registry.npmjs.org/tinycolor npm http 304 https://registry.npmjs.org/zeparser/0.0.5 npm http 304 https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/tinycolor npm http 304 https://registry.npmjs.org/commander > ws@0.4.25 install C:\NodeFiles\node_modules\socket.io\node_modules\socket.io-c lient\node_modules\ws > (node-gyp rebuild 2> builderror.log) || (exit 0) C:\NodeFiles\node_modules\socket.io\node_modules\socket.io-client\node_modules\w s>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_mo dules\node-gyp\bin\node-gyp.js" rebuild C:\Users\shane\.node-gyp\0.8.18\deps\uv\include\uv.h(55): fatal error C1083: Ca nnot open include file: 'stdint.h': No such file or directory [C:\NodeFiles\nod e_modules\socket.io\node_modules\socket.io-client\node_modules\ws\build\binding .sln] Project : warning PRJ0018: The following environment variables were not found: [C:\NodeFiles\node_modules\socket.io\node_modules\socket.io-client\node_modules \ws\build\binding.sln] C:\Users\shane\.node-gyp\0.8.18\deps\uv\include\uv.h(55): fatal error C1083: Ca nnot open include file: 'stdint.h': No such file or directory [C:\NodeFiles\nod e_modules\socket.io\node_modules\socket.io-client\node_modules\ws\build\binding .sln] Project : warning PRJ0018: The following environment variables were not found: [C:\NodeFiles\node_modules\socket.io\node_modules\socket.io-client\node_modules \ws\build\binding.sln] socket.io@0.9.13 node_modules\socket.io ├── base64id@0.1.0 ├── policyfile@0.0.4 ├── redis@0.7.3 └── socket.io-client@0.9.11 (xmlhttprequest@1.4.2, uglify-js@1.2.5, active-x-obf uscator@0.0.1, ws@0.4.25) 

2008年,我有一个类似的问题试图安装node-serialport,所以我安装了Visual C ++ Studio Express 2010 http://www.microsoft.com/visualstudio/eng/downloads#d-2010-express

我用“Visual Studio命令提示符”来运行“npm install”,就像一个魅力一样工作。