NPM安装Mongoose Kerberos错误gss_acquire_cred_impersonate_name [英] NPM install Mongoose Kerberos error gss_acquire_cred_impersonate_name
问题描述
发出npm install mongoose --save
时,我收到警告.我使用的是El Capitan 10.11.1,Xcode 7.1.1 Build 7B1005和npm 2.14.7.尽管一切正常(到目前为止),但我想进一步理解这一点.
When I issue a npm install mongoose --save
I am receiving a WARN. I am on El Capitan 10.11.1, Xcode 7.1.1 Build version 7B1005, and npm 2.14.7. Although everything is working (so far), I would like to understand this further.
Richards-MBP:app richardlu$ npm install mongoose --save
npm WARN peerDependencies The peer dependency kerberos@~0.0 included from mongodb-core will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
> kerberos@0.0.17 install /Users/richard/okcoders/boom/app/node_modules/mongoose/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)
CXX(target) Release/obj.target/kerberos/lib/kerberos.o
CXX(target) Release/obj.target/kerberos/lib/worker.o
CC(target) Release/obj.target/kerberos/lib/kerberosgss.o
../lib/kerberosgss.c:509:13: warning: implicit declaration of function 'gss_acquire_cred_impersonate_name' is invalid in C99
[-Wimplicit-function-declaration]
maj_stat = gss_acquire_cred_impersonate_name(&min_stat,
^
1 warning generated.
CC(target) Release/obj.target/kerberos/lib/base64.o
CXX(target) Release/obj.target/kerberos/lib/kerberos_context.o
SOLINK_MODULE(target) Release/kerberos.node
mongoose@4.2.5 node_modules/mongoose
├── ms@0.7.1
├── async@0.9.0
├── hooks-fixed@1.1.0
├── regexp-clone@0.0.1
├── mpromise@0.5.4
├── mpath@0.1.1
├── muri@1.0.0
├── sliced@0.0.5
├── kareem@1.0.1
├── bson@0.4.19
├── mquery@1.6.3 (bluebird@2.9.26)
└── mongodb@2.0.48 (es6-promise@2.1.1, readable-stream@1.0.31, kerberos@0.0.17, mongodb-core@1.2.21)
推荐答案
了解其他背景.问题源于此:
For some background for others. This questions stemmed from this:
^此问题是由于找不到libgcc而引发的错误.
^ This question is an error thrown because libgcc cannot be found.
根据您的情况,有两个警告.首先是这样:
In your situation there are two warnings. The first is this:
npm WARN peerDependencies The peer dependency kerberos@~0.0 included from mongodb-core will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
这些是NPM依赖项警告,指出(在这种情况下)mongodb-core
依赖于kerberos
,并且(也许是因为kerberos提供了对mongodb-core起作用并非完全必要的自定义功能),因此不会安装它作为将来npm
3+版中mongodb-core的随附依赖项(如果需要,则必须显式安装它).
These are NPM dependency warnings that state (in this case) that mongodb-core
depends on kerberos
and (maybe because kerberos offers custom functionality that is not completely necessary for mongodb-core to function), it will not be installed as an included dependency of mongodb-core in npm
version 3+ in the future (and you will have to install it explicitly if you need it).
第二个警告是这样
warning: implicit declaration of function 'gss_acquire_cred_impersonate_name' is invalid in C99
这意味着在C99标准中,不允许隐式函数声明(不提供标题签名-阅读标题和实现文件).但是,在构建kerberos
时,他们已将-Wimplicit-function-declaration
提供给C编译器,告诉C编译器抛出警告而不是出错(因此,他们希望这样做).
This means that, in the C99 standard, implicit function declarations (without supplying a header signature - read about header and implementation files) are not allowed. However, when kerberos
is being built, they have supplied the -Wimplicit-function-declaration
to the C compiler that tells it to throw a warning rather than error out (so they are expecting this to happen).
这篇关于NPM安装Mongoose Kerberos错误gss_acquire_cred_impersonate_name的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!