winsock2.h,安装节点包时没有这样的文件或目录

时间:2015-05-21 12:04:32

标签: node.js visual-studio-2013 npm winsock

安装节点模块时,出现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

请帮忙

0 个答案:

没有答案