我正在使用centos 6.6,npm 2.14.4
如果我尝试使用以下内容安装mongoose ..
npm install --save mongoose
它出现了很多编译类型错误,看起来与kerberos有关吗?
示例输出......
> kerberos@0.0.15 install /home/ian/node/nodeapp/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)
make: Entering directory `/home/ian/node/nodeapp/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 /home/ian/.node-gyp/4.1.1/include/node/node.h:42,
from ../lib/kerberos.h:4,
from ../lib/kerberos.cc:1:
/home/ian/.node-gyp/4.1.1/include/node/v8.h:336: error: expected unqualified-id before ‘using’
/home/ian/.node-gyp/4.1.1/include/node/v8.h: In constructor ‘v8::MaybeLocal::MaybeLocal()’:
/home/ian/.node-gyp/4.1.1/include/node/v8.h:353: error: ‘nullptr’ was not declared in this scope
...lots more similar errors
关于什么错误的想法?
答案 0 :(得分:1)
我没有通过包管理器正确安装mongodb,通过difference between these 2 ways of initializing an simple array
安装