Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 opened this issue Sep 10, 2015 · 20 comments

Comments

@wayne5ning
Copy link

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


> [email protected] 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]
[email protected] node_modules\mongoose
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected] ([email protected], [email protected])
    [email protected] ([email protected], [email protected], [email protected])

@vkarpov15
Copy link
Collaborator

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
Copy link

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

> [email protected] 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

> [email protected] 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
Copy link
Collaborator

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

@sweetcoco
Copy link

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
Copy link
Collaborator

Which version of mongoose is this?

@sweetcoco
Copy link

Same errors on both 4.1.7 and 3.9.7

@vkarpov15
Copy link
Collaborator

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
Copy link
Author

@wayne5ning
Copy link
Author

@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
Copy link
Collaborator

@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
Copy link

pomeo commented Sep 16, 2015

@vkarpov15
mongoose 4.1.7

> [email protected] 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
Copy link
Collaborator

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.

@vkarpov15 vkarpov15 reopened this Sep 16, 2015
@pomeo
Copy link

pomeo commented Sep 16, 2015

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

@vkarpov15
Copy link
Collaborator

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
Copy link

pomeo commented Sep 16, 2015

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

@dau-readwhere
Copy link

@vkarpov15

Error in installing Mongoose with node v4.0.0

[email protected] 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/node_modules/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
[email protected] node_modules/mongoose
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])

@vkarpov15
Copy link
Collaborator

it's a warning, not an error

@fiznool
Copy link

fiznool commented Sep 26, 2015

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
Copy link

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
Copy link

"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 [email protected] No repository field.
npm WARN package.json [email protected] No README data
/
> [email protected] 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
[email protected] node_modules\mongoose
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected])

Martii pushed a commit to Martii/OpenUserJS.org that referenced this issue Nov 19, 2015
* *fakes3* update
* Retested mongoose delete op
* Mostly bug fixes with a few new features

**NOTES**
* One NPM warning on dev with:

``` sh-session
npm WARN EPEERINVALID [email protected] requires a peer of kerberos@~0.0 but none was installed.

```

... assuming previous maintainer response of Automattic/mongoose#3362 (comment) since this appears to be working


See those packages changelogs for details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants