安装节点模块时,出现winsock2.h, no such file or directory
错误。有关更多信息,请参阅下面的文字。
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(355,5): warning MSB8003: Could not find WindowsS
an invalid version number. [c:\Playground\ng-tpl\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules
kerberos.cc
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
es\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
worker.cc
security_credentials.cc
security_buffer.cc
security_buffer_descriptor.cc
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
und\ng-tpl\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
g-tpl\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
security_context.cc
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
layground\ng-tpl\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj
c:\users\Jay\.node-gyp\0.10.26\deps\uv\include\uv-private/uv-win.h(32): fatal error C1083: Cannot open include file: 'winsock
ng-tpl\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
npm http GET https://registry.npmjs.org/tar/-/tar-2.1.1.tgz
npm http 503 https://registry.npmjs.org/tar/-/tar-2.1.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-2.1.1.tgz
npm http GET https://registry.npmjs.org/tar/-/tar-2.1.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-2.1.1.tgz
npm WARN optional dep failed, continuing bson-ext@0.1.7
npm WARN optional dep failed, continuing bson-ext@0.1.7
我用Google搜索,发现这是一个非常常见的问题。大多数用户都可以通过安装windows 7 SDK
来解决此问题。我尝试了downlaoding&在我的机器上安装windows 7 SDK
但它失败了。我假设我已经在我的mahcine上安装了visual studio 2013
。
请帮忙