2

这是我得到的错误..

> 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,但似乎忽略了这一点。

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

4

1 回答 1

2

我通过在安装 socket.io 包时指定 Visual Studio 版本解决了这个问题。

您可以尝试使用:

npm install socket.io --msvs_version=2012

于 2013-11-04T04:19:06.570 回答