簡體   English   中英

NPM:On OS X El Capitan上的“ld:找不到-lgcc_s.10.5的庫”?

[英]NPM: The “ld: library not found for -lgcc_s.10.5” on On OS X El Capitan?

當我使用npm install來安裝此存儲庫的依賴項時,我遇到了如下錯誤:

> fsevents@0.3.8 install /Users/hanfeisun/Workspace/vue-webpack-example/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

  SOLINK_MODULE(target) Release/.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/.node] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/hanfeisun/Workspace/vue-webpack-example/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok 
npm WARN optional dep failed, continuing fsevents@0.3.8

但是,安裝仍然成功完成。 當我使用npm run ,該應用程序仍能正常npm run 有沒有人有關於node-gyp rebuild在這里做什么的想法? 為什么項目運行良好,甚至node-gyp拋出錯誤?

我升級到Node 4.1.0(OS X 10.10.5)后遇到了這個問題,從官方軟件包重新安裝后沒有任何運氣。 為了它的價值,這為我解決了它:

cd /usr/local/lib
sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.5.dylib

(最初在這里找到。)

我從官方pkg重新安裝node.js后解決了。

我也有這個問題。 結果我升級了Xcode但從未重啟過。 重啟后我能夠成功npm install

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM