无法安装猫鼬npm [英] failing to install mongoose npm

查看:66
本文介绍了无法安装猫鼬npm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将猫鼬安装为npm.我回来了很多错误.我从阅读过类似问题的帖子中做了 npm install -g node-gyp 的npm安装.但是,我的问题似乎并没有消失.我无法解决此警告.任何见解将不胜感激.

I am installing mongoose as an npm. I am getting back a bunch of errors. I did a npm install of npm install -g node-gyp from a post I read about with a similar problem. However, my problem did not seem to go away. I am not able to problem solve the warning on this one. Any insight would be hugely appreciated.

   ../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
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/kerberos.node] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/stevenkauyedauty/.npm-packages/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "node" "/Users/stevenkauyedauty/.npm-packages/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/stevenkauyedauty/projects/controllerAs/beerRecipes/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok 

推荐答案

它抱怨您的系统上不存在库lgcc_s.10.5.您可以在此处看到与Homebrew类似的问题.如果您使用的是Mac,则建议的解决方案是升级到XCode 7.

It is complaining about the library lgcc_s.10.5 not existing on your system. You can see a similar issue with Homebrew here. If you are on Mac, then the proposed solution is to upgrade to XCode 7.

找出您的XCode版本:

Figure out your XCode version:

vinay@chocobo-2:~ $ xcodebuild -version
Xcode 7.0.1

这篇关于无法安装猫鼬npm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆