我正在安裝mongoose作爲npm。我回來了一堆錯誤。我做了一個npm安裝npm install -g node-gyp從一篇文章中我讀到了一個類似的問題。但是,我的問題似乎沒有消失。我無法解決這個問題的警告。任何洞察力將非常感激。未能安裝貓鼬npm
../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
你運行Mac?你在使用XCode 6嗎? – Vinay
'xcodebuild -version' – Vinay
好的。我剛纔在6.4上看到了你的評論。我將升級 – Winnemucca