Open ghost opened 10 years ago
build error,参考一下这个 issue 看看有没有解决办法: https://github.com/turingou/douban.fm/issues/10
你找找openSUSE下有没有类似 alsa-lib-devel
的包
还是 node-gyp 下载 node.tgz 不完整导致的
gyp: /usr/share/node/common.gypi not found (cwd: /home/rainsun/douban.fm/node_modules/player/node_modules/speaker) while reading includes of binding.gyp while trying to load binding.gyp
gyp ERR! configure error
https://github.com/TooTallNate/node-gyp/pull/389
推荐使用国内源再试试
$ [sudo] npm install douban.fm -g --registry=http://r.cnpmjs.org --disturl=http://dist.u.qiniudn.com
sudo zypper in alsa-devel
Resolved!
npm http 200 https://registry.npmjs.org/punycode/-/punycode-1.2.3.tgz gyp: /usr/share/node/common.gypi not found (cwd: /home/rainsun/douban.fm/node_modules/player/node_modules/speaker) while reading includes of binding.gyp while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:
gyp
failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib64/node_modules/npm/node_modules/node-gyp/lib/configure.js:417:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:784:12) gyp ERR! System Linux 3.11.6-4-desktop gyp ERR! command "node" "/usr/lib64/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/rainsun/douban.fm/node_modules/player/node_modules/speaker gyp ERR! node -v v0.10.5 gyp ERR! node-gyp -v v0.9.5 gyp ERR! not ok gyp: /usr/share/node/common.gypi not found (cwd: /home/rainsun/douban.fm/node_modules/player/node_modules/lame) while reading includes of binding.gyp while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error:gyp
failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/lib64/node_modules/npm/node_modules/node-gyp/lib/configure.js:417:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:784:12) gyp ERR! System Linux 3.11.6-4-desktop gyp ERR! command "node" "/usr/lib64/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/rainsun/douban.fm/node_modules/player/node_modules/lame gyp ERR! node -v v0.10.5 gyp ERR! node-gyp -v v0.9.5 gyp ERR! not ok npm ERR! speaker@0.0.10 install:node-gyp rebuild
npm ERR!sh "-c" "node-gyp rebuild"
failed with 1 npm ERR! npm ERR! Failed at the speaker@0.0.10 install script. npm ERR! This is most likely a problem with the speaker package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls speaker npm ERR! There is likely additional logging output above.npm ERR! System Linux 3.11.6-4-desktop npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" npm ERR! cwd /home/rainsun/douban.fm npm ERR! node -v v0.10.5 npm ERR! npm -v 1.2.18 npm ERR! code ELIFECYCLE npm http 200 https://registry.npmjs.org/delayed-stream/0.0.5 npm http GET https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz npm WARN package.json punycode@1.2.3 No README.md file found! npm http 200 https://registry.npmjs.org/hoek npm http GET https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz npm http 200 https://registry.npmjs.org/boom/-/boom-0.4.2.tgz npm http 200 https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz npm http 200 https://registry.npmjs.org/hoek/-/hoek-0.9.1.tgz npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/rainsun/douban.fm/npm-debug.log npm ERR! not ok code 0