I was able to get npm install working with warning after facing several issues reported here https://github.com/AzureADSamples/WebAPI-Nodejs/issues/created_by/anujc
However, running node server.js results in error. Below is the complete log.
Can you please let me know what I could be missing.
dir\WebAPI-Nodejs\node-server [master]> npm
install
npm WARN package.json azure-activedirectory-library-for-ios@0.0.1 No repository
field.
npm WARN package.json azure-activedirectory-library-for-ios@0.0.1 No README data
dir\WebAPI-Nodejs\node-server\node_modules\b
unyan\node_modules\dtrace-provider>node "C:\Program Files\nodejs\node_modules\np
m\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
dir\WebAPI-Nodejs\node-server\node_modules\m
ongodb\node_modules\kerberos>node "C:\Program Files\nodejs\node_modules\npm\bin\
node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
kerberos.cc
worker.cc
security_credentials.cc
security_buffer.cc
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(184): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
security_buffer_descriptor.cc
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(184): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::FunctionTemplate
]
security_context.cc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::FunctionTemplate
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::FunctionTemplate
]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::FunctionTemplate
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::FunctionTemplate
]
kerberos_sspi.c
base64.c
Creating library dir\WebAPI-Nodejs\nod
e-server\node_modules\mongodb\node_modules\kerberos\build\Release\kerberos.li
b and object dir\WebAPI-Nodejs\node-serve
r\node_modules\mongodb\node_modules\kerberos\build\Release\kerberos.exp
Generating code
Finished generating code
kerberos.vcxproj -> dir\WebAPI-Nodejs\nod
e-server\node_modules\mongodb\node_modules\kerberos\build\Release\kerberos.n
ode
dir\WebAPI-Nodejs\node-server\node_modules\m
ongodb\node_modules\bson>node "C:\Program Files\nodejs\node_modules\npm\bin\node
-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
bson.cc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
dir\WebAPI-Nodejs\node-server\node_modules\
mongodb\node_modules\bson\node_modules\nan\nan.h(1103): warning C4267: 'initial
izing' : conversion from 'size_t' to 'int', possible loss of data [D:\Test\GitH
ubAADSamples\AadAdfsSamples\WebAPI-Nodejs\node-server\node_modules\mongodb\node
_modules\bson\build\bson.vcxproj]
dir\WebAPI-Nodejs\node-server\node_modules\
mongodb\node_modules\bson\node_modules\nan\nan.h(1117): warning C4267: 'initial
izing' : conversion from 'size_t' to 'int', possible loss of data [D:\Test\GitH
ubAADSamples\AadAdfsSamples\WebAPI-Nodejs\node-server\node_modules\mongodb\node
_modules\bson\build\bson.vcxproj]
..\ext\bson.cc(891): warning C4267: 'argument' : conversion from 'size_t' to 'u
int32_t', possible loss of data [dir\WebAPI
-Nodejs\node-server\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
dir\WebAPI-Nodejs\node-server\node_modules\
mongodb\node_modules\bson\node_modules\nan\nan.h(950): warning C4244: 'argument
' : conversion from 'int64_t' to 'double', possible loss of data [D:\Test\GitHu
bAADSamples\AadAdfsSamples\WebAPI-Nodejs\node-server\nodemodules\mongodb\node
modules\bson\build\bson.vcxproj]
..\ext\bson.cc(560) : see reference to function template instantiatio
n 'v8::Local NanNewv8::Number,int64_t(P)' being compiled
with
[
T=v8::Number,
P=int64_t
]
..\ext\bson.cc(313): warning C4267: 'initializing' : conversion from 'size_t' t
o 'uint32_t', possible loss of data [dir\We
bAPI-Nodejs\node-server\node_modules\mongodb\node_modules\bson\build\bson.vcxpr
oj]
..\ext\bson.cc(142) : while compiling class template member function
'void BSONSerializer::SerializeValue(void ,const v8::Handlev8::Value &)
'
with
[
T=CountStream
]
..\ext\bson.cc(92) : while compiling class template member function '
void BSONSerializer::SerializeDocument(const v8::Handlev8::Value &)'
with
[
T=CountStream
]
..\ext\bson.cc(868) : see reference to class template instantiation '
BSONSerializer' being compiled
with
[
T=CountStream
]
..\ext\bson.cc(313): warning C4267: 'initializing' : conversion from 'size_t' t
o 'uint32_t', possible loss of data [dir\We
bAPI-Nodejs\node-server\node_modules\mongodb\node_modules\bson\build\bson.vcxpr
oj]
..\ext\bson.cc(142) : while compiling class template member function
'void BSONSerializer::SerializeValue(void ,const v8::Handlev8::Value &)
'
with
[
T=DataStream
]
..\ext\bson.cc(92) : while compiling class template member function '
void BSONSerializer::SerializeDocument(const v8::Handlev8::Value &)'
with
[
T=DataStream
]
..\ext\bson.cc(877) : see reference to class template instantiation '
BSONSerializer' being compiled
with
[
T=DataStream
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\bson\build\bson.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\bson\build\bson.vcxproj]
with
[
T=v8::FunctionTemplate
]
Creating library dir\WebAPI-Nodejs\nod
e-server\node_modules\mongodb\node_modules\bson\build\Release\bson.lib and ob
ject dir\WebAPI-Nodejs\node-server\node_m
odules\mongodb\node_modules\bson\build\Release\bson.exp
Generating code
Finished generating code
bson.vcxproj -> dir\WebAPI-Nodejs\node-se
rver\node_modules\mongodb\node_modules\bson\build\Release\bson.node
dir\WebAPI-Nodejs\node-server\node_modules\m
ongoose\node_modules\mongodb\node_modules\kerberos>node "C:\Program Files\nodejs
\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js"
rebuild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
kerberos.cc
worker.cc
security_credentials.cc
security_buffer.cc
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
security_buffer_descriptor.cc
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(184): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(184): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::FunctionTemplate
]
security_context.cc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerber
os.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerber
os.vcxproj]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::FunctionTemplate
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::FunctionTemplate
]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerber
os.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerber
os.vcxproj]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::FunctionTemplate
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::FunctionTemplate
]
kerberos_sspi.c
base64.c
Creating library dir\WebAPI-Nodejs\nod
e-server\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\bui
ld\Release\kerberos.lib and object dir\We
bAPI-Nodejs\node-server\node_modules\mongoose\node_modules\mongodb\node_modul
es\kerberos\build\Release\kerberos.exp
Generating code
Finished generating code
kerberos.vcxproj -> dir\WebAPI-Nodejs\nod
e-server\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\bui
ld\Release\kerberos.node
dir\WebAPI-Nodejs\node-server\node_modules\m
ongoose\node_modules\mongodb\node_modules\bson>node "C:\Program Files\nodejs\nod
e_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" reb
uild
Building the projects in this solution one at a time. To enable parallel build,
please add the "/m" switch.
bson.cc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxpr
oj]
dir\WebAPI-Nodejs\node-server\node_modules\
mongoose\node_modules\mongodb\node_modules\bson\node_modules\nan\nan.h(1103): w
arning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss
of data [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
dir\WebAPI-Nodejs\node-server\node_modules\
mongoose\node_modules\mongodb\node_modules\bson\node_modules\nan\nan.h(1117): w
arning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss
of data [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
..\ext\bson.cc(891): warning C4267: 'argument' : conversion from 'size_t' to 'u
int32_t', possible loss of data [dir\WebAPI
-Nodejs\node-server\node_modules\mongoose\node_modules\mongodb\node_modules\bso
n\build\bson.vcxproj]
dir\WebAPI-Nodejs\node-server\node_modules\
mongoose\node_modules\mongodb\node_modules\bson\node_modules\nan\nan.h(950): wa
rning C4244: 'argument' : conversion from 'int64_t' to 'double', possible loss
of data [dir\WebAPI-Nodejs\node-server\node
_modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
..\ext\bson.cc(560) : see reference to function template instantiatio
n 'v8::Local NanNewv8::Number,int64_t(P)' being compiled
with
[
T=v8::Number,
P=int64_t
]
..\ext\bson.cc(313): warning C4267: 'initializing' : conversion from 'size_t' t
o 'uint32_t', possible loss of data [dir\We
bAPI-Nodejs\node-server\node_modules\mongoose\node_modules\mongodb\node_modules
\bson\build\bson.vcxproj]
..\ext\bson.cc(142) : while compiling class template member function
'void BSONSerializer::SerializeValue(void ,const v8::Handlev8::Value &)
'
with
[
T=CountStream
]
..\ext\bson.cc(92) : while compiling class template member function '
void BSONSerializer::SerializeDocument(const v8::Handlev8::Value &)'
with
[
T=CountStream
]
..\ext\bson.cc(868) : see reference to class template instantiation '
BSONSerializer' being compiled
with
[
T=CountStream
]
..\ext\bson.cc(313): warning C4267: 'initializing' : conversion from 'size_t' t
o 'uint32_t', possible loss of data [dir\We
bAPI-Nodejs\node-server\node_modules\mongoose\node_modules\mongodb\node_modules
\bson\build\bson.vcxproj]
..\ext\bson.cc(142) : while compiling class template member function
'void BSONSerializer::SerializeValue(void ,const v8::Handlev8::Value &)
'
with
[
T=DataStream
]
..\ext\bson.cc(92) : while compiling class template member function '
void BSONSerializer::SerializeDocument(const v8::Handlev8::Value &)'
with
[
T=DataStream
]
..\ext\bson.cc(877) : see reference to class template instantiation '
BSONSerializer' being compiled
with
[
T=DataStream
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
with
[
T=v8::FunctionTemplate
]
Creating library dir\WebAPI-Nodejs\nod
e-server\node_modules\mongoose\node_modules\mongodb\node_modules\bson\build\R
elease\bson.lib and object dir\WebAPI-Nod
ejs\node-server\node_modules\mongoose\node_modules\mongodb\node_modules\bson\
build\Release\bson.exp
Generating code
Finished generating code
bson.vcxproj -> dir\WebAPI-Nodejs\node-se
rver\node_modules\mongoose\node_modules\mongodb\node_modules\bson\build\Relea
se\bson.node
path@0.4.9 node_modules\path
Windows Azure Active Directory Tutorial
+++++++++++++++++++++++++++++++++++++++++++++++++++++
Windows Azure Active Directroy TODO Server server is listening at http://0.0.0.
0:8888
Open your browser to http://0.0.0.0:8888/tasks
+++++++++++++++++++++++++++++++++++++++++++++++++++++
!!! why not try a $curl -isS http://0.0.0.0:8888 | json to get some ideas?
+++++++++++++++++++++++++++++++++++++++++++++++++++++
events.js:72
throw er; // Unhandled 'error' event
^
Error: failed to connect to [localhost:27017]
at null. (dir\WebAPI-Nodejs\n
ode-server\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\ser
ver.js:546:74)
at EventEmitter.emit (events.js:106:17)
at null. (dir\WebAPI-Nodejs\n
ode-server\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\con
nection_pool.js:150:15)
at EventEmitter.emit (events.js:98:17)
at Socket. (dir\WebAPI-Nodejs
\node-server\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\c
onnection.js:533:10)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:441:14
at process._tickDomainCallback (node.js:459:13)
dir\WebAPI-Nodejs\node-server [master]>
I was able to get npm install working with warning after facing several issues reported here https://github.com/AzureADSamples/WebAPI-Nodejs/issues/created_by/anujc However, running node server.js results in error. Below is the complete log. Can you please let me know what I could be missing.
dir\WebAPI-Nodejs\node-server [master]> npm install npm WARN package.json azure-activedirectory-library-for-ios@0.0.1 No repository field. npm WARN package.json azure-activedirectory-library-for-ios@0.0.1 No README data
npm http GET https://registry.npmjs.org/crypto npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/posix-getopt npm http GET https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/bunyan npm http GET https://registry.npmjs.org/xtend npm http GET https://registry.npmjs.org/grunt-contrib-watch npm http GET https://registry.npmjs.org/assert-plus npm http GET https://registry.npmjs.org/grunt-contrib-jshint npm http GET https://registry.npmjs.org/xml2js/0.2.6 npm http GET https://registry.npmjs.org/grunt npm http GET https://registry.npmjs.org/xmldom npm http GET https://registry.npmjs.org/util npm http GET https://registry.npmjs.org/passport npm http GET https://registry.npmjs.org/path npm http GET https://registry.npmjs.org/underscore npm http GET https://registry.npmjs.org/mongoose npm http GET https://registry.npmjs.org/mongodb npm http GET https://registry.npmjs.org/connect npm http GET https://registry.npmjs.org/passport-oauth npm http GET https://registry.npmjs.org/restify npm http GET https://registry.npmjs.org/node-jwt npm http GET https://registry.npmjs.org/xml-crypto npm http 304 https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/crypto npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/xtend npm http 304 https://registry.npmjs.org/bunyan npm http 304 https://registry.npmjs.org/grunt-contrib-watch npm http 304 https://registry.npmjs.org/assert-plus npm http 304 https://registry.npmjs.org/posix-getopt npm http 304 https://registry.npmjs.org/grunt-contrib-jshint npm http 304 https://registry.npmjs.org/xml2js/0.2.6 npm http 304 https://registry.npmjs.org/passport npm http 304 https://registry.npmjs.org/xmldom npm http 304 https://registry.npmjs.org/util npm http 200 https://registry.npmjs.org/grunt npm http 304 https://registry.npmjs.org/underscore npm http 304 https://registry.npmjs.org/path npm http 304 https://registry.npmjs.org/mongodb npm http 304 https://registry.npmjs.org/connect npm http 304 https://registry.npmjs.org/passport-oauth npm http 304 https://registry.npmjs.org/mongoose npm http 304 https://registry.npmjs.org/restify npm http 304 https://registry.npmjs.org/node-jwt npm http 304 https://registry.npmjs.org/xml-crypto npm http GET https://registry.npmjs.org/passport-oauth1 npm http GET https://registry.npmjs.org/passport-oauth2 npm http GET https://registry.npmjs.org/is-object npm http GET https://registry.npmjs.org/object-keys npm http GET https://registry.npmjs.org/sax/0.4.2 npm http 304 https://registry.npmjs.org/is-object npm http 304 https://registry.npmjs.org/object-keys npm http 304 https://registry.npmjs.org/passport-oauth2 npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys npm http 304 https://registry.npmjs.org/sax/0.4.2 npm http 304 https://registry.npmjs.org/passport-oauth1 npm http GET https://registry.npmjs.org/jshint npm http GET https://registry.npmjs.org/inherits/2.0.1 npm http GET https://registry.npmjs.org/passport-strategy npm http GET https://registry.npmjs.org/pause/0.0.1 npm http 304 https://registry.npmjs.org/jshint npm http 304 https://registry.npmjs.org/pause/0.0.1 npm http 304 https://registry.npmjs.org/passport-strategy npm http 304 https://registry.npmjs.org/inherits/2.0.1 npm http GET https://registry.npmjs.org/debug/1.0.2 npm http GET https://registry.npmjs.org/finalhandler/0.0.2 npm http GET https://registry.npmjs.org/parseurl/1.0.1 npm http GET https://registry.npmjs.org/foreach npm http GET https://registry.npmjs.org/is npm http GET https://registry.npmjs.org/indexof npm http GET https://registry.npmjs.org/utils-merge/1.0.0 npm http GET https://registry.npmjs.org/gaze npm http GET https://registry.npmjs.org/exit npm http GET https://registry.npmjs.org/iconv-lite npm http GET https://registry.npmjs.org/minimatch npm http GET https://registry.npmjs.org/getobject npm http GET https://registry.npmjs.org/grunt-legacy-util npm http GET https://registry.npmjs.org/nopt npm http GET https://registry.npmjs.org/rimraf npm http GET https://registry.npmjs.org/lodash npm http GET https://registry.npmjs.org/which npm http GET https://registry.npmjs.org/underscore.string npm http GET https://registry.npmjs.org/grunt-legacy-log npm http GET https://registry.npmjs.org/js-yaml npm http GET https://registry.npmjs.org/coffee-script npm http GET https://registry.npmjs.org/colors npm http GET https://registry.npmjs.org/findup-sync npm http GET https://registry.npmjs.org/eventemitter2 npm http GET https://registry.npmjs.org/dateformat/1.0.2-1.2.3 npm http GET https://registry.npmjs.org/glob npm http GET https://registry.npmjs.org/hooker npm http 304 https://registry.npmjs.org/foreach npm http 304 https://registry.npmjs.org/is npm http 304 https://registry.npmjs.org/debug/1.0.2 npm http 304 https://registry.npmjs.org/finalhandler/0.0.2 npm http 304 https://registry.npmjs.org/parseurl/1.0.1 npm http 304 https://registry.npmjs.org/indexof npm http 304 https://registry.npmjs.org/exit npm http 304 https://registry.npmjs.org/iconv-lite npm http 304 https://registry.npmjs.org/utils-merge/1.0.0 npm http 304 https://registry.npmjs.org/getobject npm http 304 https://registry.npmjs.org/grunt-legacy-util npm http 304 https://registry.npmjs.org/nopt npm http 304 https://registry.npmjs.org/gaze npm http 304 https://registry.npmjs.org/minimatch npm http 304 https://registry.npmjs.org/rimraf npm http 304 https://registry.npmjs.org/lodash npm http 304 https://registry.npmjs.org/which npm http 304 https://registry.npmjs.org/underscore.string npm http 304 https://registry.npmjs.org/grunt-legacy-log npm http 304 https://registry.npmjs.org/js-yaml npm http 304 https://registry.npmjs.org/coffee-script npm http 304 https://registry.npmjs.org/colors npm http 304 https://registry.npmjs.org/findup-sync npm http 304 https://registry.npmjs.org/eventemitter2 npm http 304 https://registry.npmjs.org/dateformat/1.0.2-1.2.3 npm http 304 https://registry.npmjs.org/glob npm http 304 https://registry.npmjs.org/hooker npm http GET https://registry.npmjs.org/oauth npm http GET https://registry.npmjs.org/utils-merge npm http GET https://registry.npmjs.org/uid2 npm http 304 https://registry.npmjs.org/oauth npm http 304 https://registry.npmjs.org/utils-merge npm http 304 https://registry.npmjs.org/uid2 npm http GET https://registry.npmjs.org/escape-html/1.0.1 npm http 304 https://registry.npmjs.org/escape-html/1.0.1 npm http GET https://registry.npmjs.org/ms/0.6.2 npm http GET https://registry.npmjs.org/abbrev npm http 304 https://registry.npmjs.org/abbrev npm http 304 https://registry.npmjs.org/ms/0.6.2 npm http GET https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/lru-cache npm http 304 https://registry.npmjs.org/sigmund npm http GET https://registry.npmjs.org/graceful-fs npm http GET https://registry.npmjs.org/inherits npm http GET https://registry.npmjs.org/fileset npm http GET https://registry.npmjs.org/form-data npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/cookie-jar npm http GET https://registry.npmjs.org/hawk npm http GET https://registry.npmjs.org/node-uuid npm http GET https://registry.npmjs.org/aws-sign npm http GET https://registry.npmjs.org/oauth-sign npm http GET https://registry.npmjs.org/forever-agent npm http GET https://registry.npmjs.org/tunnel-agent npm http 304 https://registry.npmjs.org/graceful-fs npm http 304 https://registry.npmjs.org/inherits npm http GET https://registry.npmjs.org/qs npm http GET https://registry.npmjs.org/json-stringify-safe npm http 304 https://registry.npmjs.org/cookie-jar npm http 304 https://registry.npmjs.org/hawk npm http 304 https://registry.npmjs.org/fileset npm http GET https://registry.npmjs.org/backoff/2.3.0 npm http GET https://registry.npmjs.org/bunyan/0.22.1 npm http GET https://registry.npmjs.org/cli/0.4.3 npm http GET https://registry.npmjs.org/csv/0.3.7 npm http GET https://registry.npmjs.org/deep-equal/0.0.0 npm http GET https://registry.npmjs.org/escape-regexp-component/1.0.2 npm http GET https://registry.npmjs.org/keep-alive-agent/0.0.1 npm http GET https://registry.npmjs.org/lru-cache/2.3.1 npm http GET https://registry.npmjs.org/mime/1.2.11 npm http GET https://registry.npmjs.org/formidable/1.0.14 npm http GET https://registry.npmjs.org/negotiator/0.3.0 npm http GET https://registry.npmjs.org/once/1.3.0 npm http GET https://registry.npmjs.org/http-signature/0.10.0 npm http GET https://registry.npmjs.org/node-uuid/1.4.1 npm http GET https://registry.npmjs.org/qs/0.6.6 npm http GET https://registry.npmjs.org/semver/2.2.1 npm http GET https://registry.npmjs.org/spdy/1.19.3 npm http GET https://registry.npmjs.org/tunnel-agent/0.4.0 npm http GET https://registry.npmjs.org/verror/1.3.7 npm http GET https://registry.npmjs.org/dtrace-provider/0.2.8 npm http 304 https://registry.npmjs.org/node-uuid npm http 304 https://registry.npmjs.org/aws-sign npm http 304 https://registry.npmjs.org/oauth-sign npm http 304 https://registry.npmjs.org/forever-agent npm http 304 https://registry.npmjs.org/tunnel-agent npm http 304 https://registry.npmjs.org/qs npm http 304 https://registry.npmjs.org/json-stringify-safe npm http 304 https://registry.npmjs.org/form-data npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/cli/0.4.3 npm http 304 https://registry.npmjs.org/backoff/2.3.0 npm http 304 https://registry.npmjs.org/bunyan/0.22.1 npm http 304 https://registry.npmjs.org/csv/0.3.7 npm http 304 https://registry.npmjs.org/escape-regexp-component/1.0.2 npm http 304 https://registry.npmjs.org/keep-alive-agent/0.0.1 npm http 304 https://registry.npmjs.org/mime/1.2.11 npm http 304 https://registry.npmjs.org/formidable/1.0.14 npm http 304 https://registry.npmjs.org/lru-cache/2.3.1 npm http 304 https://registry.npmjs.org/negotiator/0.3.0 npm http 304 https://registry.npmjs.org/once/1.3.0 npm http 304 https://registry.npmjs.org/deep-equal/0.0.0 npm http 304 https://registry.npmjs.org/http-signature/0.10.0 npm http 304 https://registry.npmjs.org/semver/2.2.1 npm http 304 https://registry.npmjs.org/node-uuid/1.4.1 npm http 304 https://registry.npmjs.org/qs/0.6.6 npm http 304 https://registry.npmjs.org/spdy/1.19.3 npm http 304 https://registry.npmjs.org/tunnel-agent/0.4.0 npm http 304 https://registry.npmjs.org/verror/1.3.7 npm WARN engine hawk@0.10.2: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.2 5","npm":"1.3.24"}) npm http 304 https://registry.npmjs.org/dtrace-provider/0.2.8 npm http GET https://registry.npmjs.org/argparse npm http GET https://registry.npmjs.org/esprima npm http 304 https://registry.npmjs.org/argparse npm http 304 https://registry.npmjs.org/esprima npm http GET https://registry.npmjs.org/xmldom-fork-fixed npm http GET https://registry.npmjs.org/xmldom/0.1.16 npm http GET https://registry.npmjs.org/xpath.js npm http GET https://registry.npmjs.org/combined-stream npm http 304 https://registry.npmjs.org/xmldom-fork-fixed npm http 304 https://registry.npmjs.org/xpath.js npm http 304 https://registry.npmjs.org/xmldom/0.1.16 npm http 304 https://registry.npmjs.org/combined-stream npm http GET https://registry.npmjs.org/assert-plus/0.1.2 npm http GET https://registry.npmjs.org/asn1/0.1.11 npm http GET https://registry.npmjs.org/ctype/0.5.2 npm http GET https://registry.npmjs.org/mv npm http 304 https://registry.npmjs.org/assert-plus/0.1.2 npm http 304 https://registry.npmjs.org/ctype/0.5.2 npm http 304 https://registry.npmjs.org/asn1/0.1.11 npm http GET https://registry.npmjs.org/delayed-stream/0.0.5 npm http 304 https://registry.npmjs.org/mv npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5 npm http GET https://registry.npmjs.org/extsprintf/1.0.2 npm http 304 https://registry.npmjs.org/extsprintf/1.0.2 npm http GET https://registry.npmjs.org/ncp npm http GET https://registry.npmjs.org/mkdirp npm http 304 https://registry.npmjs.org/ncp npm http 304 https://registry.npmjs.org/mkdirp npm http GET https://registry.npmjs.org/once npm http GET https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/hoek npm http GET https://registry.npmjs.org/cryptiles npm http GET https://registry.npmjs.org/sntp npm http 304 https://registry.npmjs.org/once npm http 304 https://registry.npmjs.org/boom npm http 304 https://registry.npmjs.org/hoek npm http 304 https://registry.npmjs.org/cryptiles npm http 304 https://registry.npmjs.org/sntp npm WARN engine boom@0.3.8: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.25 ","npm":"1.3.24"}) npm WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.25 ","npm":"1.3.24"}) npm WARN engine sntp@0.1.4: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.25 ","npm":"1.3.24"}) npm WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"v0. 10.25","npm":"1.3.24"})
dir\WebAPI-Nodejs\node-server\node_modules\r estify\node_modules\dtrace-provider>node "C:\Program Files\nodejs\node_modules\n pm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. npm http GET https://registry.npmjs.org/kerberos/0.0.3 npm http GET https://registry.npmjs.org/bson/0.2.9 npm http GET https://registry.npmjs.org/readable-stream npm http 304 https://registry.npmjs.org/readable-stream npm http 304 https://registry.npmjs.org/bson/0.2.9 npm http 304 https://registry.npmjs.org/kerberos/0.0.3 npm http GET https://registry.npmjs.org/mongodb/1.4.5 npm http GET https://registry.npmjs.org/ms/0.1.0 npm http GET https://registry.npmjs.org/regexp-clone/0.0.1 npm http GET https://registry.npmjs.org/hooks/0.2.1 npm http GET https://registry.npmjs.org/mquery/0.7.0 npm http GET https://registry.npmjs.org/muri/0.3.1 npm http GET https://registry.npmjs.org/mpromise/0.4.3 npm http GET https://registry.npmjs.org/sliced/0.0.5 npm http GET https://registry.npmjs.org/mpath/0.1.1 npm http 304 https://registry.npmjs.org/mongodb/1.4.5 npm http GET https://registry.npmjs.org/mv/0.0.5 npm http 304 https://registry.npmjs.org/mquery/0.7.0 npm http 304 https://registry.npmjs.org/ms/0.1.0 npm http 304 https://registry.npmjs.org/regexp-clone/0.0.1 npm http 304 https://registry.npmjs.org/muri/0.3.1 npm http GET https://registry.npmjs.org/core-util-is npm http GET https://registry.npmjs.org/isarray/0.0.1 npm http GET https://registry.npmjs.org/string_decoder npm http 304 https://registry.npmjs.org/mpromise/0.4.3 npm http 304 https://registry.npmjs.org/sliced/0.0.5 npm http 304 https://registry.npmjs.org/mpath/0.1.1 npm http 304 https://registry.npmjs.org/core-util-is npm http 304 https://registry.npmjs.org/isarray/0.0.1 npm http 304 https://registry.npmjs.org/string_decoder npm http 304 https://registry.npmjs.org/mv/0.0.5 npm http 304 https://registry.npmjs.org/hooks/0.2.1 npm http GET https://registry.npmjs.org/debug/0.7.4 npm http 304 https://registry.npmjs.org/debug/0.7.4 npm http GET https://registry.npmjs.org/nan npm http GET https://registry.npmjs.org/bson/0.2.8 npm http 304 https://registry.npmjs.org/nan npm http 304 https://registry.npmjs.org/bson/0.2.8
dir\WebAPI-Nodejs\node-server\node_modules\b unyan\node_modules\dtrace-provider>node "C:\Program Files\nodejs\node_modules\np m\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
dir\WebAPI-Nodejs\node-server\node_modules\m ongodb\node_modules\kerberos>node "C:\Program Files\nodejs\node_modules\npm\bin\ node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. kerberos.cc worker.cc security_credentials.cc security_buffer.cc C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(184): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
security_buffer_descriptor.cc
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(184): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::FunctionTemplate
]
security_context.cc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::FunctionTemplate
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::FunctionTemplate
]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::FunctionTemplate
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\kerberos\build\kerberos.vcxproj]
with
[
T=v8::FunctionTemplate
]
kerberos_sspi.c
base64.c
Creating library dir\WebAPI-Nodejs\nod
e-server\node_modules\mongodb\node_modules\kerberos\build\Release\kerberos.li
b and object dir\WebAPI-Nodejs\node-serve
r\node_modules\mongodb\node_modules\kerberos\build\Release\kerberos.exp
Generating code
Finished generating code
kerberos.vcxproj -> dir\WebAPI-Nodejs\nod
e-server\node_modules\mongodb\node_modules\kerberos\build\Release\kerberos.n
ode
dir\WebAPI-Nodejs\node-server\node_modules\m ongodb\node_modules\bson>node "C:\Program Files\nodejs\node_modules\npm\bin\node -gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. bson.cc C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa rning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [dir\WebAPI-Nodejs\node-serve r\node_modules\mongodb\node_modules\bson\build\bson.vcxproj] dir\WebAPI-Nodejs\node-server\node_modules\ mongodb\node_modules\bson\node_modules\nan\nan.h(1103): warning C4267: 'initial izing' : conversion from 'size_t' to 'int', possible loss of data [D:\Test\GitH ubAADSamples\AadAdfsSamples\WebAPI-Nodejs\node-server\node_modules\mongodb\node _modules\bson\build\bson.vcxproj] dir\WebAPI-Nodejs\node-server\node_modules\ mongodb\node_modules\bson\node_modules\nan\nan.h(1117): warning C4267: 'initial izing' : conversion from 'size_t' to 'int', possible loss of data [D:\Test\GitH ubAADSamples\AadAdfsSamples\WebAPI-Nodejs\node-server\node_modules\mongodb\node _modules\bson\build\bson.vcxproj] ..\ext\bson.cc(891): warning C4267: 'argument' : conversion from 'size_t' to 'u int32_t', possible loss of data [dir\WebAPI -Nodejs\node-server\node_modules\mongodb\node_modules\bson\build\bson.vcxproj] dir\WebAPI-Nodejs\node-server\node_modules\ mongodb\node_modules\bson\node_modules\nan\nan.h(950): warning C4244: 'argument ' : conversion from 'int64_t' to 'double', possible loss of data [D:\Test\GitHu bAADSamples\AadAdfsSamples\WebAPI-Nodejs\node-server\nodemodules\mongodb\node modules\bson\build\bson.vcxproj] ..\ext\bson.cc(560) : see reference to function template instantiatio n 'v8::Local NanNewv8::Number,int64_t(P)' being compiled
with
[
T=v8::Number,
P=int64_t
]
..\ext\bson.cc(313): warning C4267: 'initializing' : conversion from 'size_t' t
o 'uint32_t', possible loss of data [dir\We
bAPI-Nodejs\node-server\node_modules\mongodb\node_modules\bson\build\bson.vcxpr
oj]
..\ext\bson.cc(142) : while compiling class template member function
'void BSONSerializer::SerializeValue(void ,const v8::Handlev8::Value &)
'
with
[
T=CountStream
]
..\ext\bson.cc(92) : while compiling class template member function '
void BSONSerializer::SerializeDocument(const v8::Handlev8::Value &)'
with
[
T=CountStream
]
..\ext\bson.cc(868) : see reference to class template instantiation '
BSONSerializer' being compiled
with
[
T=CountStream
]
..\ext\bson.cc(313): warning C4267: 'initializing' : conversion from 'size_t' t
o 'uint32_t', possible loss of data [dir\We
bAPI-Nodejs\node-server\node_modules\mongodb\node_modules\bson\build\bson.vcxpr
oj]
..\ext\bson.cc(142) : while compiling class template member function
'void BSONSerializer::SerializeValue(void ,const v8::Handlev8::Value &)
'
with
[
T=DataStream
]
..\ext\bson.cc(92) : while compiling class template member function '
void BSONSerializer::SerializeDocument(const v8::Handlev8::Value &)'
with
[
T=DataStream
]
..\ext\bson.cc(877) : see reference to class template instantiation '
BSONSerializer' being compiled
with
[
T=DataStream
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\bson\build\bson.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongodb\node_modules\bson\build\bson.vcxproj]
with
[
T=v8::FunctionTemplate
]
Creating library dir\WebAPI-Nodejs\nod
e-server\node_modules\mongodb\node_modules\bson\build\Release\bson.lib and ob
ject dir\WebAPI-Nodejs\node-server\node_m
odules\mongodb\node_modules\bson\build\Release\bson.exp
Generating code
Finished generating code
bson.vcxproj -> dir\WebAPI-Nodejs\node-se
rver\node_modules\mongodb\node_modules\bson\build\Release\bson.node
dir\WebAPI-Nodejs\node-server\node_modules\m ongoose\node_modules\mongodb\node_modules\kerberos>node "C:\Program Files\nodejs \node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. kerberos.cc worker.cc security_credentials.cc security_buffer.cc C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
security_buffer_descriptor.cc
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(184): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(184): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::FunctionTemplate
]
security_context.cc
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerber
os.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerber
os.vcxproj]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::FunctionTemplate
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::FunctionTemplate
]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerber
os.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa
rning C4530: C++ exception handler used, but unwind semantics are not enabled.
Specify /EHsc [dir\WebAPI-Nodejs\node-serve
r\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerber
os.vcxproj]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(218): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::FunctionTemplate
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\kerberos\build\kerberos.vc
xproj]
with
[
T=v8::FunctionTemplate
]
kerberos_sspi.c
base64.c
Creating library dir\WebAPI-Nodejs\nod
e-server\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\bui
ld\Release\kerberos.lib and object dir\We
bAPI-Nodejs\node-server\node_modules\mongoose\node_modules\mongodb\node_modul
es\kerberos\build\Release\kerberos.exp
Generating code
Finished generating code
kerberos.vcxproj -> dir\WebAPI-Nodejs\nod
e-server\node_modules\mongoose\node_modules\mongodb\node_modules\kerberos\bui
ld\Release\kerberos.node
dir\WebAPI-Nodejs\node-server\node_modules\m ongoose\node_modules\mongodb\node_modules\bson>node "C:\Program Files\nodejs\nod e_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js" reb uild Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. bson.cc C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale(323): wa rning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc [dir\WebAPI-Nodejs\node-serve r\node_modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxpr oj] dir\WebAPI-Nodejs\node-server\node_modules\ mongoose\node_modules\mongodb\node_modules\bson\node_modules\nan\nan.h(1103): w arning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data [dir\WebAPI-Nodejs\node-server\nod e_modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxproj] dir\WebAPI-Nodejs\node-server\node_modules\ mongoose\node_modules\mongodb\node_modules\bson\node_modules\nan\nan.h(1117): w arning C4267: 'initializing' : conversion from 'size_t' to 'int', possible loss of data [dir\WebAPI-Nodejs\node-server\nod e_modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxproj] ..\ext\bson.cc(891): warning C4267: 'argument' : conversion from 'size_t' to 'u int32_t', possible loss of data [dir\WebAPI -Nodejs\node-server\node_modules\mongoose\node_modules\mongodb\node_modules\bso n\build\bson.vcxproj] dir\WebAPI-Nodejs\node-server\node_modules\ mongoose\node_modules\mongodb\node_modules\bson\node_modules\nan\nan.h(950): wa rning C4244: 'argument' : conversion from 'int64_t' to 'double', possible loss of data [dir\WebAPI-Nodejs\node-server\node _modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxproj] ..\ext\bson.cc(560) : see reference to function template instantiatio n 'v8::Local NanNewv8::Number,int64_t(P)' being compiled
with
[
T=v8::Number,
P=int64_t
]
..\ext\bson.cc(313): warning C4267: 'initializing' : conversion from 'size_t' t
o 'uint32_t', possible loss of data [dir\We
bAPI-Nodejs\node-server\node_modules\mongoose\node_modules\mongodb\node_modules
\bson\build\bson.vcxproj]
..\ext\bson.cc(142) : while compiling class template member function
'void BSONSerializer::SerializeValue(void ,const v8::Handlev8::Value &)
'
with
[
T=CountStream
]
..\ext\bson.cc(92) : while compiling class template member function '
void BSONSerializer::SerializeDocument(const v8::Handlev8::Value &)'
with
[
T=CountStream
]
..\ext\bson.cc(868) : see reference to class template instantiation '
BSONSerializer' being compiled
with
[
T=CountStream
]
..\ext\bson.cc(313): warning C4267: 'initializing' : conversion from 'size_t' t
o 'uint32_t', possible loss of data [dir\We
bAPI-Nodejs\node-server\node_modules\mongoose\node_modules\mongodb\node_modules
\bson\build\bson.vcxproj]
..\ext\bson.cc(142) : while compiling class template member function
'void BSONSerializer::SerializeValue(void ,const v8::Handlev8::Value &)
'
with
[
T=DataStream
]
..\ext\bson.cc(92) : while compiling class template member function '
void BSONSerializer::SerializeDocument(const v8::Handlev8::Value &)'
with
[
T=DataStream
]
..\ext\bson.cc(877) : see reference to class template instantiation '
BSONSerializer' being compiled
with
[
T=DataStream
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
with
[
T=v8::Object
]
C:\Users\anujc.node-gyp\0.10.25\deps\v8\include\v8.h(179): warning C4506: no d
efinition for inline function 'v8::Persistent v8::Persistent::New(v8::Han
dle)' [dir\WebAPI-Nodejs\node-server\nod
e_modules\mongoose\node_modules\mongodb\node_modules\bson\build\bson.vcxproj]
with
[
T=v8::FunctionTemplate
]
Creating library dir\WebAPI-Nodejs\nod
e-server\node_modules\mongoose\node_modules\mongodb\node_modules\bson\build\R
elease\bson.lib and object dir\WebAPI-Nod
ejs\node-server\node_modules\mongoose\node_modules\mongodb\node_modules\bson\
build\Release\bson.exp
Generating code
Finished generating code
bson.vcxproj -> dir\WebAPI-Nodejs\node-se
rver\node_modules\mongoose\node_modules\mongodb\node_modules\bson\build\Relea
se\bson.node
path@0.4.9 node_modules\path
assert-plus@0.1.5 node_modules\assert-plus
posix-getopt@1.1.0 node_modules\posix-getopt
crypto@0.0.3 node_modules\crypto
node-jwt@0.0.1 node_modules\node-jwt
xmldom@0.1.19 node_modules\xmldom
async@0.2.10 node_modules\async
underscore@1.4.4 node_modules\underscore
util@0.10.3 node_modules\util └── inherits@2.0.1
passport@0.2.0 node_modules\passport ├── pause@0.0.1 └── passport-strategy@1.0.0
xtend@2.0.6 node_modules\xtend ├── is-object@0.1.2 └── object-keys@0.2.0 (indexof@0.0.1, is@0.2.7, foreach@2.0.4)
connect@3.0.1 node_modules\connect ├── parseurl@1.0.1 ├── utils-merge@1.0.0 ├── finalhandler@0.0.2 (escape-html@1.0.1) └── debug@1.0.2 (ms@0.6.2)
passport-oauth@1.0.0 node_modules\passport-oauth ├── passport-oauth1@1.0.1 (utils-merge@1.0.0, passport-strategy@1.0.0, oauth@0.9 .12) └── passport-oauth2@1.1.2 (uid2@0.0.3, passport-strategy@1.0.0, oauth@0.9.12)
xml2js@0.2.6 node_modules\xml2js └── sax@0.4.2
grunt-contrib-watch@0.2.0 node_modules\grunt-contrib-watch └── gaze@0.3.4 (minimatch@0.2.14, fileset@0.1.5)
request@2.16.6 node_modules\request ├── forever-agent@0.2.0 ├── aws-sign@0.2.0 ├── tunnel-agent@0.2.0 ├── oauth-sign@0.2.0 ├── json-stringify-safe@3.0.0 ├── cookie-jar@0.2.0 ├── mime@1.2.11 ├── node-uuid@1.4.1 ├── form-data@0.0.10 (combined-stream@0.0.5) ├── qs@0.5.6 └── hawk@0.10.2 (cryptiles@0.1.3, sntp@0.1.4, boom@0.3.8, hoek@0.7.6)
grunt-contrib-jshint@0.1.1 node_modules\grunt-contrib-jshint └── jshint@0.9.1 (minimatch@0.0.5, cli@0.4.3)
xml-crypto@0.0.23 node_modules\xml-crypto ├── xpath.js@0.0.4 ├── xmldom-fork-fixed@0.0.1 └── xmldom@0.1.16
grunt@0.4.5 node_modules\grunt ├── dateformat@1.0.2-1.2.3 ├── which@1.0.5 ├── eventemitter2@0.4.14 ├── getobject@0.1.0 ├── rimraf@2.2.8 ├── colors@0.6.2 ├── async@0.1.22 ├── hooker@0.2.3 ├── grunt-legacy-util@0.2.0 ├── exit@0.1.2 ├── nopt@1.0.10 (abbrev@1.0.5) ├── minimatch@0.2.14 (sigmund@1.0.0, lru-cache@2.5.0) ├── glob@3.1.21 (inherits@1.0.0, graceful-fs@1.2.3) ├── lodash@0.9.2 ├── underscore.string@2.2.1 ├── coffee-script@1.3.3 ├── iconv-lite@0.2.11 ├── findup-sync@0.1.3 (glob@3.2.11, lodash@2.4.1) ├── js-yaml@2.0.5 (esprima@1.0.4, argparse@0.1.15) └── grunt-legacy-log@0.1.1 (underscore.string@2.3.3, lodash@2.4.1)
restify@2.8.1 node_modules\restify ├── once@1.3.0 ├── deep-equal@0.0.0 ├── escape-regexp-component@1.0.2 ├── qs@0.6.6 ├── tunnel-agent@0.4.0 ├── keep-alive-agent@0.0.1 ├── lru-cache@2.3.1 ├── negotiator@0.3.0 ├── mime@1.2.11 ├── node-uuid@1.4.1 ├── semver@2.2.1 ├── spdy@1.19.3 ├── backoff@2.3.0 ├── verror@1.3.7 (extsprintf@1.0.2) ├── formidable@1.0.14 ├── http-signature@0.10.0 (assert-plus@0.1.2, asn1@0.1.11, ctype@0.5.2) ├── csv@0.3.7 ├── bunyan@0.22.1 (mv@0.0.5) └── dtrace-provider@0.2.8
bunyan@0.23.1 node_modules\bunyan ├── mv@2.0.0 (rimraf@2.2.8, ncp@0.4.2, mkdirp@0.3.5) └── dtrace-provider@0.2.8
mongodb@1.4.7 node_modules\mongodb ├── readable-stream@1.0.27-1 (isarray@0.0.1, inherits@2.0.1, string_decoder@0.10 .25-1, core-util-is@1.0.1) ├── kerberos@0.0.3 └── bson@0.2.9 (nan@1.0.0)
mongoose@3.8.12 node_modules\mongoose ├── regexp-clone@0.0.1 ├── muri@0.3.1 ├── sliced@0.0.5 ├── hooks@0.2.1 ├── mpath@0.1.1 ├── mpromise@0.4.3 ├── ms@0.1.0 ├── mquery@0.7.0 (debug@0.7.4) └── mongodb@1.4.5 (readable-stream@1.0.27-1, kerberos@0.0.3, bson@0.2.8) dir\WebAPI-Nodejs\node-server [master]> node server.js
Windows Azure Active Directory Tutorial +++++++++++++++++++++++++++++++++++++++++++++++++++++ Windows Azure Active Directroy TODO Server server is listening at http://0.0.0. 0:8888 Open your browser to http://0.0.0.0:8888/tasks +++++++++++++++++++++++++++++++++++++++++++++++++++++
!!! why not try a $curl -isS http://0.0.0.0:8888 | json to get some ideas? +++++++++++++++++++++++++++++++++++++++++++++++++++++
events.js:72 throw er; // Unhandled 'error' event ^ Error: failed to connect to [localhost:27017] at null. (dir\WebAPI-Nodejs\n
ode-server\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\ser
ver.js:546:74)
at EventEmitter.emit (events.js:106:17)
at null. (dir\WebAPI-Nodejs\n
ode-server\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\con
nection_pool.js:150:15)
at EventEmitter.emit (events.js:98:17)
at Socket. (dir\WebAPI-Nodejs
\node-server\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\c
onnection.js:533:10)
at Socket.EventEmitter.emit (events.js:95:17)
at net.js:441:14
at process._tickDomainCallback (node.js:459:13)
dir\WebAPI-Nodejs\node-server [master]>