Automattic / mongoose

MongoDB object modeling designed to work in an asynchronous environment.
https://mongoosejs.com
MIT License
26.96k stars 3.84k forks source link

npm install mongoose fails on windows with node-v4.0.0-x64 and mongodb-win32-x86_64-2008plus-ssl-3.0.6-signed #3362

Closed wayne5ning closed 9 years ago

wayne5ning commented 9 years ago

npm install mongoose works with Node.js v0.12.7, but fails with node-v4.0.0-x64.

Software and system

Visual Studio 2015 Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32 Win10 x64

Logs


> kerberos@0.0.12 install E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild ) 
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
  kerberos.cc
  worker.cc
  security_buffer.cc
  security_buffer_descriptor.cc
  security_context.cc
  security_credentials.cc
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(263): error C2995: “v8::Local<T> _NanEnsureLocal(v8::Local<T>)”: 函数模板已经定义 (编译源文件 ..\lib\win32\worker.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(256): note: 参见“_NanEnsureLocal”的声明 (编译源文件 ..\lib\win32\worker.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C3083: “smalloc”:“::”左侧的符号必须是一种类型 (编译源文件 ..\lib\win32\worker.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2039: “FreeCallback”: 不是“node”的成员 (编译源文件 ..\lib\win32\worker.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(7): note: 参见“node”的声明 (编译源文件 ..\lib\win32\worker.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2061: 语法错误: 标识符“FreeCallback” (编译源文件 ..\lib\win32\worker.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “callback”: 未声明的标识符 (编译源文件 ..\lib\win32\worker.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “hint”: 未声明的标识符 (编译源文件 ..\lib\win32\worker.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): error C2665: “node::Buffer::New”: 4 个重载中没有一个可以转换所有参数类型 (编译源文件 ..\lib\win32\worker.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(43): note: 可能是“v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,char *,size_t)” (编译源文件 ..\lib\win32\worker.cc)
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(31): note: 或  “v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::encoding)” (编译源文件 ..\lib\win32\worker.cc)
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): note: 尝试匹配参数列表“(v8::Isolate *, const char *, uint32_t)”时 (编译源文件 ..\lib\win32\worker.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): error C2440: “return”: 无法从“v8::MaybeLocal<v8::Object>”转换为“v8::Local<v8::Object>” (编译源文件 ..\lib\win32\worker.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): note: 无构造函数可以接受源类型,或构造函数重载决策不明确 (编译源文件 ..\lib\win32\worker.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C2039: “Use”: 不是“node::Buffer”的成员 (编译源文件 ..\lib\win32\worker.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(8): note: 参见“node::Buffer”的声明 (编译源文件 ..\lib\win32\worker.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(263): error C2995: “v8::Local<T> _NanEnsureLocal(v8::Local<T>)”: 函数模板已经定义 (编译源文件 ..\lib\win32\kerberos.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C3861: “Use”: 找不到标识符 (编译源文件 ..\lib\win32\worker.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(256): note: 参见“_NanEnsureLocal”的声明 (编译源文件 ..\lib\win32\kerberos.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C3083: “smalloc”:“::”左侧的符号必须是一种类型 (编译源文件 ..\lib\win32\kerberos.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2039: “FreeCallback”: 不是“node”的成员 (编译源文件 ..\lib\win32\kerberos.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(7): note: 参见“node”的声明 (编译源文件 ..\lib\win32\kerberos.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2061: 语法错误: 标识符“FreeCallback” (编译源文件 ..\lib\win32\kerberos.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “callback”: 未声明的标识符 (编译源文件 ..\lib\win32\kerberos.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “hint”: 未声明的标识符 (编译源文件 ..\lib\win32\kerberos.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): error C2665: “node::Buffer::New”: 4 个重载中没有一个可以转换所有参数类型 (编译源文件 ..\lib\win32\kerberos.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(43): note: 可能是“v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,char *,size_t)” (编译源文件 ..\lib\win32\kerberos.cc)
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(31): note: 或  “v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::encoding)” (编译源文件 ..\lib\win32\kerberos.cc)
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): note: 尝试匹配参数列表“(v8::Isolate *, const char *, uint32_t)”时 (编译源文件 ..\lib\win32\kerberos.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): error C2440: “return”: 无法从“v8::MaybeLocal<v8::Object>”转换为“v8::Local<v8::Object>” (编译源文件 ..\lib\win32\kerberos.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): note: 无构造函数可以接受源类型,或构造函数重载决策不明确 (编译源文件 ..\lib\win32\kerberos.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C2039: “Use”: 不是“node::Buffer”的成员 (编译源文件 ..\lib\win32\kerberos.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(8): note: 参见“node::Buffer”的声明 (编译源文件 ..\lib\win32\kerberos.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C3861: “Use”: 找不到标识符 (编译源文件 ..\lib\win32\kerberos.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(263): error C2995: “v8::Local<T> _NanEnsureLocal(v8::Local<T>)”: 函数模板已经定义 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(256): note: 参见“_NanEnsureLocal”的声明 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(263): error C2995: “v8::Local<T> _NanEnsureLocal(v8::Local<T>)”: 函数模板已经定义 (编译源文件 ..\lib\win32\wrappers\security_context.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(256): note: 参见“_NanEnsureLocal”的声明 (编译源文件 ..\lib\win32\wrappers\security_context.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C3083: “smalloc”:“::”左侧的符号必须是一种类型 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2039: “FreeCallback”: 不是“node”的成员 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_object_wrap.h(8): note: 参见“node”的声明 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2061: 语法错误: 标识符“FreeCallback” (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “callback”: 未声明的标识符 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “hint”: 未声明的标识符 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): error C2665: “node::Buffer::New”: 4 个重载中没有一个可以转换所有参数类型 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(43): note: 可能是“v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,char *,size_t)” (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc)
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(31): note: 或  “v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::encoding)” (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc)
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): note: 尝试匹配参数列表“(v8::Isolate *, const char *, uint32_t)”时 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): error C2440: “return”: 无法从“v8::MaybeLocal<v8::Object>”转换为“v8::Local<v8::Object>” (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): note: 无构造函数可以接受源类型,或构造函数重载决策不明确 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C2039: “Use”: 不是“node::Buffer”的成员 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(8): note: 参见“node::Buffer”的声明 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C3861: “Use”: 找不到标识符 (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(263): error C2995: “v8::Local<T> _NanEnsureLocal(v8::Local<T>)”: 函数模板已经定义 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(256): note: 参见“_NanEnsureLocal”的声明 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C3083: “smalloc”:“::”左侧的符号必须是一种类型 (编译源文件 ..\lib\win32\wrappers\security_context.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2039: “FreeCallback”: 不是“node”的成员 (编译源文件 ..\lib\win32\wrappers\security_context.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_object_wrap.h(8): note: 参见“node”的声明 (编译源文件 ..\lib\win32\wrappers\security_context.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2061: 语法错误: 标识符“FreeCallback” (编译源文件 ..\lib\win32\wrappers\security_context.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “callback”: 未声明的标识符 (编译源文件 ..\lib\win32\wrappers\security_context.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(263): error C2995: “v8::Local<T> _NanEnsureLocal(v8::Local<T>)”: 函数模板已经定义 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “hint”: 未声明的标识符 (编译源文件 ..\lib\win32\wrappers\security_context.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(256): note: 参见“_NanEnsureLocal”的声明 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): error C2665: “node::Buffer::New”: 4 个重载中没有一个可以转换所有参数类型 (编译源文件 ..\lib\win32\wrappers\security_context.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(43): note: 可能是“v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,char *,size_t)” (编译源文件 ..\lib\win32\wrappers\security_context.cc)
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(31): note: 或  “v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::encoding)” (编译源文件 ..\lib\win32\wrappers\security_context.cc)
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): note: 尝试匹配参数列表“(v8::Isolate *, const char *, uint32_t)”时 (编译源文件 ..\lib\win32\wrappers\security_context.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): error C2440: “return”: 无法从“v8::MaybeLocal<v8::Object>”转换为“v8::Local<v8::Object>” (编译源文件 ..\lib\win32\wrappers\security_context.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): note: 无构造函数可以接受源类型,或构造函数重载决策不明确 (编译源文件 ..\lib\win32\wrappers\security_context.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C2039: “Use”: 不是“node::Buffer”的成员 (编译源文件 ..\lib\win32\wrappers\security_context.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(8): note: 参见“node::Buffer”的声明 (编译源文件 ..\lib\win32\wrappers\security_context.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C3861: “Use”: 找不到标识符 (编译源文件 ..\lib\win32\wrappers\security_context.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C3083: “smalloc”:“::”左侧的符号必须是一种类型 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2039: “FreeCallback”: 不是“node”的成员 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_object_wrap.h(8): note: 参见“node”的声明 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2061: 语法错误: 标识符“FreeCallback” (编译源文件 ..\lib\win32\wrappers\security_credentials.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “callback”: 未声明的标识符 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “hint”: 未声明的标识符 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): error C2665: “node::Buffer::New”: 4 个重载中没有一个可以转换所有参数类型 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(43): note: 可能是“v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,char *,size_t)” (编译源文件 ..\lib\win32\wrappers\security_credentials.cc)
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(31): note: 或  “v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::encoding)” (编译源文件 ..\lib\win32\wrappers\security_credentials.cc)
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): note: 尝试匹配参数列表“(v8::Isolate *, const char *, uint32_t)”时 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): error C2440: “return”: 无法从“v8::MaybeLocal<v8::Object>”转换为“v8::Local<v8::Object>” (编译源文件 ..\lib\win32\wrappers\security_credentials.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): note: 无构造函数可以接受源类型,或构造函数重载决策不明确 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C3083: “smalloc”:“::”左侧的符号必须是一种类型 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C2039: “Use”: 不是“node::Buffer”的成员 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc)E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2039: “FreeCallback”: 不是“node”的成员 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]

  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(8): note: 参见“node::Buffer”的声明 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc)C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_object_wrap.h(8): note: 参见“node”的声明 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc)

E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C3861: “Use”: 找不到标识符 (编译源文件 ..\lib\win32\wrappers\security_credentials.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(661): error C2061: 语法错误: 标识符“FreeCallback” (编译源文件 ..\lib\win32\wrappers\security_buffer.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “callback”: 未声明的标识符 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(665): error C2065: “hint”: 未声明的标识符 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): error C2665: “node::Buffer::New”: 4 个重载中没有一个可以转换所有参数类型 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(43): note: 可能是“v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,char *,size_t)” (编译源文件 ..\lib\win32\wrappers\security_buffer.cc)
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(31): note: 或  “v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate *,v8::Local<v8::String>,node::encoding)” (编译源文件 ..\lib\win32\wrappers\security_buffer.cc)
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(672): note: 尝试匹配参数列表“(v8::Isolate *, const char *, uint32_t)”时 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): error C2440: “return”: 无法从“v8::MaybeLocal<v8::Object>”转换为“v8::Local<v8::Object>” (编译源文件 ..\lib\win32\wrappers\security_buffer.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(676): note: 无构造函数可以接受源类型,或构造函数重载决策不明确 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C2039: “Use”: 不是“node::Buffer”的成员 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  C:\Users\wuqi\.node-gyp\4.0.0\include\node\node_buffer.h(8): note: 参见“node::Buffer”的声明 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc)
E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(683): error C3861: “Use”: 找不到标识符 (编译源文件 ..\lib\win32\wrappers\security_buffer.cc) [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
..\lib\win32\wrappers\security_buffer_descriptor.cc(162): error C2666: “NanNewBufferHandle”: 2 个重载有相似的转换 [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(668): note: 可能是“v8::Local<v8::Object> NanNewBufferHandle(const char *,uint32_t)” (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc)
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(658): note: 或  “v8::Local<v8::Object> NanNewBufferHandle(char *,size_t)” (编译源文件 ..\lib\win32\wrappers\security_buffer_descriptor.cc)
  ..\lib\win32\wrappers\security_buffer_descriptor.cc(162): note: 尝试匹配参数列表“(char *, uint32_t)”时
  ..\lib\win32\wrappers\security_buffer_descriptor.cc(162): note: 注意: 限定调整(const/volatile)可能会造成多义性
..\lib\win32\wrappers\security_buffer.cc(84): error C2666: “NanNewBufferHandle”: 2 个重载有相似的转换 [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(668): note: 可能是“v8::Local<v8::Object> NanNewBufferHandle(const char *,uint32_t)” (编译源文件 ..\lib\win32\wrappers\security_buffer.cc)
  E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\node_modules\nan\nan.h(658): note: 或  “v8::Local<v8::Object> NanNewBufferHandle(char *,size_t)” (编译源文件 ..\lib\win32\wrappers\security_buffer.cc)
  ..\lib\win32\wrappers\security_buffer.cc(84): note: 尝试匹配参数列表“(char *, uint32_t)”时
  ..\lib\win32\wrappers\security_buffer.cc(84): note: 注意: 限定调整(const/volatile)可能会造成多义性
..\lib\win32\wrappers\security_context.cc(617): warning C4311: “类型转换”: 从“unsigned long *”到“unsigned long”的指针截断 [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
..\lib\win32\wrappers\security_context.cc(617): warning C4302: “类型转换”: 从“unsigned long *”到“unsigned long”截断 [E:\tmp\HEAD\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
mongoose@4.1.6 node_modules\mongoose
    regexp-clone@0.0.1
    sliced@0.0.5
    muri@1.0.0
    mpromise@0.5.4
    hooks-fixed@1.1.0
    mpath@0.1.1
    async@0.9.0
    kareem@1.0.1
    ms@0.1.0
    bson@0.4.11
    mquery@1.6.3 (debug@2.2.0, bluebird@2.9.26)
    mongodb@2.0.42 (es6-promise@2.1.1, readable-stream@1.0.31, mongodb-core@1.2.10)
vkarpov15 commented 9 years ago

Looks like a bunch of warnings - mongoose should work fine in this case unless you use kerberos auth. I could be wrong - I can't read Chinese unfortunately.

sweetcoco commented 9 years ago

@vkarpov15 similar issue. just installed node v4. on Yosemite.

> kerberos@0.0.4 install /Users/Developer/ah/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/kerberos/lib/kerberos.o

> bson@0.2.22 install /Users/Developer/ah/node_modules/mongoose/node_modules/mongodb/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bson/ext/bson.o

though it looks like the issue might be with mongodb, not mongoose directly.

vkarpov15 commented 9 years ago

I don't see any error messages above @sweetcoco, looks like a normal build.

sweetcoco commented 9 years ago

It seems to work fine, but I get this fun little warning/error (that I never had before on node v0.12.4), @vkarpov15.

$ node index.js
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
vkarpov15 commented 9 years ago

Which version of mongoose is this?

sweetcoco commented 9 years ago

Same errors on both 4.1.7 and 3.9.7

vkarpov15 commented 9 years ago

Not an error, just a warning. Either way, doesn't matter, the pure JS bson parser is much improved and should be about as fast as old native bson parser.

wayne5ning commented 9 years ago

@vkarpov15 mongoose@4.1.6

wayne5ning commented 9 years ago

@vkarpov15 @sweetcoco From the logs, all errors are with mongodb, not mongoose directly. However, mongoose fails to work with installation by npm install mongoose, which is also a problem.

vkarpov15 commented 9 years ago

@wayne5ning do you get any errors when you try to run mongoose?

Also, @sweetcoco please don't use mongoose 3.9.7 for anything, that was an unstable release

pomeo commented 9 years ago

@vkarpov15 mongoose 4.1.7

> kerberos@0.0.14 install /home/pomeo/www/github/***/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)

make: Entering directory `/home/pomeo/www/github/***/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build'
  CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory
 #include <gssapi/gssapi.h>
                           ^
compilation terminated.
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory `/home/pomeo/www/github/***/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/pomeo/.nvm/versions/node/v0.12.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Linux 3.13.0-55-generic
gyp ERR! command "node" "/home/pomeo/.nvm/versions/node/v0.12.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pomeo/www/github/***/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
gyp ERR! node -v v0.12.4
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
vkarpov15 commented 9 years ago

Yeah I get the same issue on node 4.0.0. We're working on it. I wouldn't worry about it though - unless you have your mongodb instance configured to use your kerberos cluster as an authentication mechanism it won't affect you.

pomeo commented 9 years ago

@vkarpov15 The problem is that capistrano for example during the deployment sees this error, immediately terminate deploy the application.

vkarpov15 commented 9 years ago

How does capistrano determine this is an "error"? The npm install exit code should still be 0, since kerberos is an optional dependency for mongodb-core

pomeo commented 9 years ago

@vkarpov15 Everything is fine. All day today, capistrano stopped after this error. Now everything works, I don't know what it was.

dau-readwhere commented 9 years ago

@vkarpov15

Error in installing Mongoose with node v4.0.0

kerberos@0.0.14 install /home/***/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos (node-gyp rebuild) || (exit 0)

make: Entering directory `/home/***/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build' CXX(target) Release/obj.target/kerberos/lib/kerberos.o In file included from ../lib/kerberos.cc:1:0: ../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory

include <gssapi/gssapi.h>

                       ^

compilation terminated. make: * [Release/obj.target/kerberos/lib/kerberos.o] Error 1 make: Leaving directory`/home/_/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 3.13.0-24-generic gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/nodemodules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/**/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos gyp ERR! node -v v4.0.0 gyp ERR! node-gyp -v v3.0.1 gyp ERR! not ok mongoose@4.1.8 node_modules/mongoose ├── regexp-clone@0.0.1 ├── sliced@0.0.5 ├── muri@1.0.0 ├── hooks-fixed@1.1.0 ├── mpromise@0.5.4 ├── kareem@1.0.1 ├── mpath@0.1.1 ├── async@0.9.0 ├── ms@0.1.0 ├── bson@0.4.12 ├── mquery@1.6.3 (debug@2.2.0, bluebird@2.9.26) └── mongodb@2.0.42 (es6-promise@2.1.1, readable-stream@1.0.31, mongodb-core@1.2.10)

vkarpov15 commented 9 years ago

it's a warning, not an error

fiznool commented 9 years ago

For anybody seeing the same issue as reported by @pomeo, the problem is due to the fact that your system is missing the MIT Kerberos library.

On Ubuntu I was able to fix this by installing libkrb5-dev:

sudo apt-get install libkrb5-dev
muhammadghazali commented 9 years ago

For anybody seeing the same issue as reported by @pomeo, the problem is due to the fact that your system is missing the MIT Kerberos library.

On Ubuntu I was able to fix this by installing libkrb5-dev:

sudo apt-get install libkrb5-dev

+1. I was also got into this problem and solved by installed the missing library.

debasishgt commented 9 years ago

"npm install mongoose --save" is giving the errors below.

I am using basic MongoDB functionality which is working fine though.

I installed the 2015 community edition for Visual Studio & added the path to CL.exe to path environment variables to get rid of some of the errors that were coming but the following is still there. Seems to be an array of errors that I am trying to resolve.

Not sure if I am addressing the right issue. I was expecting it to install error free.

Am I missing something?

npm WARN package.json mongo_connect@1.0.0 No repository field.
npm WARN package.json mongo_connect@1.0.0 No README data
/
> kerberos@0.0.15 install C:\...\src\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerb
os
> (node-gyp rebuild) || (exit 0)

C:\...\src\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos>if not defined npm_co
ig_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node  rebuild )
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\V140\Microsoft.CppBuild.targets(366,5): warning MSB8003: Could not find WindowsSDKDir variable from the regi
try.  TargetFrameworkVersion or PlatformToolset may be set to an invalid version number. [C:\...\src\node_modules\mongoose\
ode_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\...\src\node_modules\mongoose\node_modules\mongod
\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\...\src\node_modules\mongoose\node_modules\mongod
\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\...\src\node_modules\mongoose\node_modules\mongod
\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\...\src\node_modules\mongoose\node_modules\mongod
\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  kerberos.cc
  worker.cc
  security_buffer.cc
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\...\src\node_modules\mongoose\node_modules\mongod
\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  security_buffer_descriptor.cc
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\...\src\node_modules\mongoose\node_modules\mongod
\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  security_context.cc
cl : Command line warning D9002: ignoring unknown option '/Zc:inline' [C:\...\src\node_modules\mongoose\node_modules\mongod
\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
  security_credentials.cc
..\lib\win32\wrappers\security_context.cc(1): fatal error C1083: Cannot open include file: 'assert.h': No such file or directory [C:\Data_Sector\Student\CSULA
Grad-Project\src\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
c:\users\dthakurta\.node-gyp\4.1.1\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [C:\Data_Sector\S
udent\CSULA\Grad-Project\src\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
c:\users\dthakurta\.node-gyp\4.1.1\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [C:\Data_Sector\S
udent\CSULA\Grad-Project\src\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
c:\users\dthakurta\.node-gyp\4.1.1\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [C:\Data_Sector\S
udent\CSULA\Grad-Project\src\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
c:\users\dthakurta\.node-gyp\4.1.1\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [C:\Data_Sector\S
udent\CSULA\Grad-Project\src\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
c:\users\dthakurta\.node-gyp\4.1.1\include\node\v8.h(18): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [C:\Data_Sector\S
udent\CSULA\Grad-Project\src\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos\build\kerberos.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10240
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\...\src\node_modules\mongoose\node_modules\mongodb\node_modules\mongodb-core\node_modules\kerberos
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
mongoose@4.1.10 node_modules\mongoose
├── hooks-fixed@1.1.0
├── async@0.9.0
├── regexp-clone@0.0.1
├── muri@1.0.0
├── mpath@0.1.1
├── mpromise@0.5.4
├── sliced@0.0.5
├── kareem@1.0.1
├── ms@0.1.0
├── bson@0.4.16
├── mquery@1.6.3 (debug@2.2.0, bluebird@2.9.26)
└── mongodb@2.0.42 (readable-stream@1.0.31, es6-promise@2.1.1, mongodb-core@1.2.10)