我正在尝试安装mongoexpress模块的节点模块。在运行sudo npm install
时,我收到以下警告消息。虽然这是一条警告信息,但我想了解导致此警告的原因以及如何避免此警告。我使用的是Ubuntu 14.04,Node 0.12.0,MongoExpress 0.21.0
提前致谢
sathish@sathish-Vostro-1540:~/Documents/mongo-express$ npm install
npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible
> kerberos@0.0.19 install /home/sathish/Documents/mongo-express/node_modules/kerberos
> (node-gyp rebuild) || (exit 0)
child_process: customFds option is deprecated, use stdio instead.
make: Entering directory `/home/sathish/Documents/mongo-express/node_modules/kerberos/build'
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:36:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
#pragma clang diagnostic push
^
../lib/kerberosgss.c:37:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
^
../lib/kerberosgss.c: In function ‘authenticate_gss_client_wrap’:
../lib/kerberosgss.c:377:19: warning: variable ‘server_conf_flags’ set but not used [-Wunused-but-set-variable]
char buf[4096], server_conf_flags;
^
../lib/kerberosgss.c: At top level:
../lib/kerberosgss.c:945:0: warning: ignoring #pragma clang diagnostic [-Wunknown-pragmas]
#pragma clang diagnostic pop
^
CC(target) Release/obj.target/kerberos/lib/base64.o
CXX(target) Release/obj.target/kerberos/lib/kerberos_context.o
SOLINK_MODULE(target) Release/obj.target/kerberos.node
SOLINK_MODULE(target) Release/obj.target/kerberos.node: Finished
COPY Release/kerberos.node
make: Leaving directory `/home/sathish/Documents/mongo-express/node_modules/kerberos/build'
basic-auth-connect@1.0.0 node_modules/basic-auth-connect
consolidate@0.12.1 node_modules/consolidate
underscore@1.6.0 node_modules/underscore
async@0.8.0 node_modules/async
serve-favicon@2.3.0 node_modules/serve-favicon
├── fresh@0.3.0
├── parseurl@1.3.1
├── etag@1.7.0
└── ms@0.7.1
答案 0 :(得分:1)
正在安装的npm模块包含对graceful-fs v3的依赖。对于较新版本的节点,这将失败。我的猜测是mongoexpress团队必须更新他们的依赖关系,以便能够在更新版本的节点上进行编译。
希望这可以帮助你: - )