我得到這個錯誤,而安裝運行node-gyp rebuild
任何節點包:NPM安裝帆布死
SOLINK_MODULE(target) Release/canvas-postbuild.node
clang: error: no such file or directory: '{{}'
make: *** [Release/canvas-postbuild.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:267: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.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/arkadiy/node-canvas
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
我有NPM 1.4。 28和/ usr/local的所有權限都是我的。鐺是最近十歲上下:
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix
的錯誤是完全ungoogleable(嚴重,試試吧),我甚至不能告訴那裏被調用鐺因爲堆棧跟蹤僅用於回調處理程序。看起來像是shell替換/ xargs問題差不多?
事實證明,這是由文字{}引起的LD_FLAGS中毒事件。閉幕問題。 – 2014-12-03 21:35:53