Socket.io编译错误

这是错误即时获取..

> ws@0.4.25 install C:\Users\Darryl\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws > (node-gyp rebuild 2> builderror.log) || (exit 0) Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. C:\Users\Darryl\.node-gyp\0.8.7\deps\uv\include\uv.h(55): fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory [C:\Users\Darryl\node_modules\socket.io\nod t.io-client\node_modules\ws\build\binding.sln] Project : warning PRJ0018: The following environment variables were not found: [C:\Users\Darryl\node_modules\socket.io\node_modules\socket.io-client\node_modules\ws\build\binding.sln] 

是什么让它成为一个问题是binding.sln目录/文件确实存在(我有Visual Studio Express 2012安装)

我也有python安装,但似乎忽略了。

有点失去了如何解决这个错误。 任何帮助,将不胜感激。

我通过在安装socket.io包的时候指定了visual studio版本来解决这个问题。

你可以尝试使用:

npm安装socket.io –msvs_version = 2012