Closed wayne5ning closed 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.
@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.
I don't see any error messages above @sweetcoco, looks like a normal build.
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
Which version of mongoose is this?
Same errors on both 4.1.7 and 3.9.7
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.
@vkarpov15 mongoose@4.1.6
@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.
@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
@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
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 The problem is that capistrano for example during the deployment sees this error, immediately terminate deploy the application.
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
@vkarpov15 Everything is fine. All day today, capistrano stopped after this error. Now everything works, I don't know what it was.
@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
^
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)
it's a warning, not an error
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
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.
"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)
npm install mongoose
works withNode.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