guo-yu / douban.fm Goto Github PK
View Code? Open in Web Editor NEWa tiny and smart cli player of douban.fm in Node.js
License: MIT License
a tiny and smart cli player of douban.fm in Node.js
License: MIT License
MAC OS X 10.9
标准 node 环境
$ sudo npm install douban.fm -g
之后,
开始有汇报 /Users/zoomq/.node-gyp
目录 Root 没有权限
$ chmod -R 775 /Users/zoomq/.node-gyp
处理后:
...
[email protected] install /usr/local/share/npm/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker
node-gyp rebuild
gyp http GET http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: Connection closed while downloading tarball file
gyp ERR! stack at Request. (/usr/local/Cellar/node/0.10.24/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:223:14)
gyp ERR! stack at Request.EventEmitter.emit (events.js:117:20)
gyp ERR! stack at IncomingMessage. (/usr/local/Cellar/node/0.10.24/lib/node_modules/npm/node_modules/request/request.js:846:44)
gyp ERR! stack at IncomingMessage.EventEmitter.emit (events.js:117:20)
gyp ERR! stack at IncomingMessage. (http.js:1515:11)
gyp ERR! stack at IncomingMessage.EventEmitter.emit (events.js:117:20)
gyp ERR! stack at _stream_readable.js:920:16
gyp ERR! stack at process._tickCallback (node.js:415:13)
gyp ERR! System Darwin 13.0.0
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.24/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/share/npm/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
[email protected] install /usr/local/share/npm/lib/node_modules/douban.fm/node_modules/player/node_modules/lame
node-gyp rebuild
node.js:811
var cwd = process.cwd();
^
Error: ENOENT, no such file or directory
at Function.startup.resolveArgv0 (node.js:811:23)
at startup (node.js:58:13)
at node.js:902:3
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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 Darwin 13.0.0
npm ERR! command "/usr/local/Cellar/node/0.10.24/bin/node" "/usr/local/bin/npm" "install" "douban.fm" "-g"
npm ERR! cwd /Users/zoomq
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/zoomq/npm-debug.log
npm ERR! not ok code 0
点解?
如题,Mac OSX 10.9 / iTerm2
douban.fm
进去后按 q
退出,光标就不闪了
ubuntu 12.04
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/lame/.node-gyp"
gyp WARN EACCES user "root" does not have permission to access the dev dir "/usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/lame/.node-gyp/0.10.24"
用windows尝试使用了一下..很惊讶的发现居然可以编译通过...
不过问题来了...运行.douban.fm 就直接弹出一个应用选择打开的对话框.....
安装出错,提示安装c++环境
错误提示:
MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,
Mini:~ yangsq$ sudo npm install https://github.com/turingou/douban.fm.git -g
Password:
npm http GET https://github.com/turingou/douban.fm.git
npm http 200 https://github.com/turingou/douban.fm.git
npm ERR! not a package /Users/yangsq/tmp/npm-5786-a8KQQuT-/1390185350581-0.3966983426362276/tmp.tgz
npm ERR! Error: ENOENT, open '/Users/yangsq/tmp/npm-5786-a8KQQuT-/1390185350581-0.3966983426362276/package/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "https://github.com/turingou/douban.fm.git" "-g"
npm ERR! cwd /Users/yangsq
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! path /Users/yangsq/tmp/npm-5786-a8KQQuT-/1390185350581-0.3966983426362276/package/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/yangsq/npm-debug.log
npm ERR! not ok code 0
如果没有执行过douban.fm
,第一次就执行douban.fm config
,会有一个异常。估计是找不到$HOME/douban.fm
目录导致无法写入config.json
.
提示信息如下:
npm http GET https://registry.npmjs.org/douban.fm
npm ERR! Error: failed to fetch from registry: douban.fm
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request. (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest. (/usr/lib/nodejs/request/main.js:412:12)
npm ERR! at ClientRequest.g (events.js:156:14)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at HTTPParser.parserOnIncomingClient as onIncoming
npm ERR! You may report this log at:
npm ERR! http://bugs.debian.org/npm
npm ERR! or use
npm ERR! reportbug --attach /home/coiby/Downloads/douban.fm/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.8.0-35-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "douban.fm"
npm ERR! cwd /home/coiby/Downloads/douban.fm
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: douban.fm
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/coiby/Downloads/douban.fm/npm-debug.log
npm not ok
正听着呢突然提示这个,
Error: connect ECONNREFUSED
at errnoException (net.js:901:11)
at Object.afterConnect as oncomplete
重新打开选择了频道之后还是报错。。
还有一个小bug,退出douban.fm之后,Shell的图标就不见了。。。
在帖子里关于登陆的格式是$ douban.fm -m [[email protected]] [password]
我相信很多像我一样2的人会把[]认为是必须输入的。
建议修改下,给小白人群一点方便。。
下午也是装不起来,发现是speaker模块编译不通过,后来开xcode装好command line tools后解决(虽然好像还是跑test的时候有问题,不过可以用了)这部分可以考虑放文档里去说明下。
会员需要选择码率选项啊。 很棒的工具。加油。(PS 我就提提issue好了)
锁屏之后音乐还是在放,
另外,开了 douban.fm
之后,锁屏的相应速度好慢,可以装个 alfred 然后执行 lock 看看 :) 不过不确定锁屏慢是不是因为 douban.fm
的缘故。
切换到第二首的时候往往就卡住了
前一个版本还是总算可以运行播放的,,,
这次 $ douban.fm
后:
Douban.fm 0.0.9 Loading 正在加载...
ReferenceError: consoler is not defined
at /usr/local/share/npm/lib/node_modules/douban.fm/libs/fm.js:164:25
at /usr/local/share/npm/lib/node_modules/douban.fm/libs/sdk.js:50:9
at res (/usr/local/share/npm/lib/node_modules/douban.fm/node_modules/beer/index.js:15:9)
at Request._callback (/usr/local/share/npm/lib/node_modules/douban.fm/node_modules/beer/index.js:54:9)
at Request.self.callback (/usr/local/share/npm/lib/node_modules/douban.fm/node_modules/beer/node_modules/request/request.js:123:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.<anonymous> (/usr/local/share/npm/lib/node_modules/douban.fm/node_modules/beer/node_modules/request/request.js:893:14)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage.<anonymous> (/usr/local/share/npm/lib/node_modules/douban.fm/node_modules/beer/node_modules/request/request.js:844:12)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
俺的 npm list
输出:
└─┬ [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ └── [email protected]
└── [email protected]
Set your passport for Privite Hz
$ sudo doubanfm -m [email protected] password //
设置密码出现 bash: !0: event not found
arm版 ubuntu怎么安装CLI?
[email protected] install /home/rainsun/douban.fm/node_modules/player/node_modules/speaker
node-gyp rebuild[email protected] install /home/rainsun/douban.fm/node_modules/player/node_modules/lame
node-gyp rebuild
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! [email protected] install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild"
failed with 1
npm ERR!
npm ERR! Failed at the [email protected] 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 [email protected] 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
非常非常棒的工具! 个人用起来非常的顺手, 优雅.
同时提几点个人建议, 还请考虑一下, 我也想为优化出一份力, 但个人不太懂 node.js..
放着Blue的You Make Me Wanna
的结尾,突然就响起了世界が終るまでは…
的前奏……混声了几秒钟才结束。
cam 6 小时 52 分钟前
Awesome, how about support Vi navigation: hjkl
ggice@ggice-PAF4:~$ sudo npm install douban.fm -g
[sudo] password for ggice:
npm http GET https://registry.npmjs.org/douban.fm
npm http 304 https://registry.npmjs.org/douban.fm
npm http GET https://registry.npmjs.org/player
npm http GET https://registry.npmjs.org/beer
npm http GET https://registry.npmjs.org/term-list
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/consoler
npm http GET https://registry.npmjs.org/colorful
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/paramrule
npm http GET https://registry.npmjs.org/sprintf
npm http GET https://registry.npmjs.org/exeq
npm http 304 https://registry.npmjs.org/term-list
npm http 304 https://registry.npmjs.org/consoler
npm http 304 https://registry.npmjs.org/player
npm http 304 https://registry.npmjs.org/colorful
npm http 304 https://registry.npmjs.org/beer
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/sprintf
npm http 304 https://registry.npmjs.org/paramrule
npm http 304 https://registry.npmjs.org/exeq
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/term-canvas/0.0.5
npm http GET https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/speaker
npm http GET https://registry.npmjs.org/lame
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/win-spawn
npm http GET https://registry.npmjs.org/arale
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/term-canvas/0.0.5
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/lame
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/win-spawn
npm http 304 https://registry.npmjs.org/arale
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/aws-sign2
npm http 304 https://registry.npmjs.org/speaker
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/tough-cookie
npm http 304 https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/punycode
npm http GET https://registry.npmjs.org/boom
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/sntp
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/debuglog/0.0.2
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/combined-stream
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/hoek
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/debuglog/0.0.2
[email protected] install /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker
node-gyp rebuild
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
[email protected] install /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/lame
node-gyp rebuild
make: Entering directory /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker/build' CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o ../deps/mpg123/src/output/alsa.c:19:28: fatal error: alsa/asoundlib.h: No such file or directory compilation terminated. make: Entering directory
/usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/lame/build'
deps/mpg123/test.target.mk:116: warning: overriding commands for target Release/test' deps/lame/test.target.mk:124: warning: ignoring old commands for target
Release/test'
CC(target) Release/obj.target/mp3lame/deps/lame/libmp3lame/VbrTag.o
make: *** [Release/obj.target/output/deps/mpg123/src/output/alsa.o] Error 1
make: Leaving directory /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker/build' gyp ERR! build error gyp ERR! stack Error:
makefailed 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.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12) gyp ERR! System Linux 3.11.0-031100-generic gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker gyp ERR! node -v v0.10.21 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm ERR! weird error 1 ../deps/lame/libmp3lame/VbrTag.c:1082:1: fatal error: opening dependency file ./Release/.deps/Release/obj.target/mp3lame/deps/lame/libmp3lame/VbrTag.o.d.raw: No such file or directory compilation terminated. Cannot create temporary file in /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/lame/: No such file or directory make: *** [Release/obj.target/mp3lame/deps/lame/libmp3lame/VbrTag.o] Aborted make: Leaving directory
/usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/lame/build'
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.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.11.0-031100-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/lame
gyp ERR! node -v v0.10.21
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm ERR! not ok code 0
为了程序猿的健康
现在无论是否在播放命令行的显示都是
› 轻音乐 ♥ 男&女 64kbps ... ♪ ♫ ♫ ♪ ♫ ♫ ♪ ♪ ... Love Scene • Yiruma 2001
只有那堆音符是否在跳的区别
动画只有凝视一段时间才能发觉差异,
对于程序猿而言就 图样图森破 了,无法一眼明确状态的都是渣!
将频道指示字符升级,根据状态进行变化:
> 当前频道
>> 在播放
|| 已暂停
以上
听着听着就暂停了,不知道是下载不了后续的歌曲了还是程序bug
只能重新播放整个兆赫
不知道为什么报这个错误
douban.fm: command not found
就是用
$ sudo npm install douban.fm -g
安装的
快捷键就一个好了
[return]
[backspace]
这两个要闹什么。
OSX下如果没有用sudo来安装 就需要用sudo来登录
不然就没有文件夹的写入权限
{ [Error: ENOENT, open '/Users/xxx/douban.fm/.configs.json']
errno: 34,
code: 'ENOENT',
path: '/Users/xxx/douban.fm/.configs.json' }
stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error: read ECONNRESET
at errnoException (net.js:884:11)
at TCP.onread (net.js:539:19)
unhandled - -
无法暂停(建议使用空格键);
无法停止(按Control + C都无法退出);
无法换台,在其他频道上回车后,正在播放的频道未停止。
blue5tar 4 小时 17 分钟前
安装报错
CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o
../deps/mpg123/src/output/alsa.c:19:28: 致命错误: alsa/asoundlib.h:没有那个文件或目录
编译中断。
make: *** [Release/obj.target/output/deps/mpg123/src/output/alsa.o] 错误 1
另外一种错误:#1
Douban.fm 0.1.1 Error 获取豆瓣电台频道出错,请稍后再试
不是被douban屏蔽了吧。。。
System: 3.11.0-15-generic #23-Ubuntu x86_64
Node.js: 0.10.15
douban.fm: 0.1.1
系统是在虚拟机里的。
刚开始播放 5 ~ 10 秒左右正常,然后会开始卡顿,卡顿几秒后,又会好,然后播放到一半又会卡。
网速应该不是问题,相同的情况下,用网页版正常。
有停止播放当前音乐和频道的快捷键,但是没有看到继续播放当前暂停音乐的功能。
~/Applications/douban.fm$ npm test
[email protected] test /home/ceepunk/Applications/douban.fm
./node_modules/mocha/bin/mocha ./test/test.js
module.js:340
throw err;
^
Error: Cannot find module './index'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/ceepunk/Applications/douban.fm/test/test.js:2:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /home/ceepunk/Applications/douban.fm/node_modules/mocha/lib/mocha.js:172:27
at Array.forEach (native)
at Mocha.loadFiles (/home/ceepunk/Applications/douban.fm/node_modules/mocha/lib/mocha.js:169:14)
at Mocha.run (/home/ceepunk/Applications/douban.fm/node_modules/mocha/lib/mocha.js:356:31)
at Object. (/home/ceepunk/Applications/douban.fm/node_modules/mocha/bin/_mocha:359:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
git 更新安装了红心兆赫非常帮
一开始~/douban.fm下有个love文件夹 一直空空的
还以为加了心 就自动丢进这个love里了
更新之后不自动生成这个love了
sudo npm install douban.fm -g
命令行全部输出如下:
npm http GET https://registry.npmjs.org/douban.fm
npm http 304 https://registry.npmjs.org/douban.fm
npm http GET https://registry.npmjs.org/player
npm http GET https://registry.npmjs.org/beer
npm http GET https://registry.npmjs.org/term-list
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/consoler
npm http GET https://registry.npmjs.org/colorful
npm http GET https://registry.npmjs.org/sprintf
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/paramrule
npm http GET https://registry.npmjs.org/exeq
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/beer
npm http 304 https://registry.npmjs.org/player
npm http 304 https://registry.npmjs.org/colorful
npm http 304 https://registry.npmjs.org/consoler
npm http 304 https://registry.npmjs.org/sprintf
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/term-list
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/paramrule
npm http 304 https://registry.npmjs.org/exeq
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/term-canvas/0.0.5
npm http GET https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/speaker
npm http GET https://registry.npmjs.org/lame
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/win-spawn
npm http GET https://registry.npmjs.org/arale
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/term-canvas/0.0.5
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/lame
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/win-spawn
npm http 304 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/arale
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/speaker
npm http 304 https://registry.npmjs.org/forever-agent
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/tough-cookie
npm http 304 https://registry.npmjs.org/form-data
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/assert-plus/0.1.2
npm http GET https://registry.npmjs.org/ctype/0.5.2
npm http GET https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/debuglog/0.0.2
npm http 304 https://registry.npmjs.org/assert-plus/0.1.2
npm http 304 https://registry.npmjs.org/ctype/0.5.2
npm http 304 https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/asn1/0.1.11
npm http 304 https://registry.npmjs.org/hoek
npm http 304 https://registry.npmjs.org/boom
npm http 304 https://registry.npmjs.org/cryptiles
npm http 304 https://registry.npmjs.org/sntp
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/debuglog/0.0.2
[email protected] install /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker
node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/Users/hustlzp/.node-gyp/0.10.24"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker/.node-gyp"
gyp http GET http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
gyp: /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker/.node-gyp/0.10.24/common.gypi not found (cwd: /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker) while reading includes of binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/Cellar/node/0.10.24/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Darwin 13.0.2
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.24/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5
[email protected] install /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/lame
node-gyp rebuild
node.js:811
var cwd = process.cwd();
^
Error: ENOENT, no such file or directory
at Function.startup.resolveArgv0 (node.js:811:23)
at startup (node.js:58:13)
at node.js:902:3
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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 Darwin 13.0.2
npm ERR! command "/usr/local/Cellar/node/0.10.24/bin/node" "/usr/local/bin/npm" "install" "douban.fm" "-g"
npm ERR! cwd /Users/hustlzp
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/hustlzp/npm-debug.log
npm ERR! not ok code 0
求助啊!对node不太熟...
安装的时候提示
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.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.8.0-29-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ckh/node_modules/speaker
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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.
然后我就使用sudo npm install speaker --mpg123-backend=openal
安装speaker,但是提示
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.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.8.0-29-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ckh/node_modules/speaker
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
已安装alsa 但仍然无法
make: Leaving directory `/usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker/build'
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.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.12.6-300.fc20.x86_64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker
gyp ERR! node -v v0.10.24
卡住了 另外希望在readme写上操作说明。。。
囧... 手贱连按两次回车就同时播两首歌曲了. 退格键停止也是一首一首的停...
错误信息
make: Entering directory /usr/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker/build' CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o ../deps/mpg123/src/output/alsa.c:19:28: fatal error: alsa/asoundlib.h: No such file or directory #include <alsa/asoundlib.h> ^ compilation terminated. make: *** [Release/obj.target/output/deps/mpg123/src/output/alsa.o] Error 1 make: Leaving directory
/usr/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker/build'
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.10.2-1-ARCH
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/douban.fm/node_modules/player/node_modules/speaker
gyp ERR! node -v v0.10.17
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
gyp ERR! build error
gyp ERR! stack Error: You must run node-gyp configure
first!
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:44:20
gyp ERR! stack at fs.js:207:20
gyp ERR! stack at OpenReq.Req.done (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:135:5)
gyp ERR! stack at OpenReq.done (/usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:64:22)
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Linux 3.10.2-1-ARCH
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/lib/node_modules/douban.fm/node_modules/player/node_modules/lame
gyp ERR! node -v v0.10.17
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/lib/node_modules/douban.fm/node_modules/player/node_modules/lame/build'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/usr/lib/node_modules/douban.fm/node_modules/player/node_modules/lame/build']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/lib/node_modules/douban.fm/node_modules/player/node_modules/lame/build' }
npm ERR! weird error 1
npm ERR! not ok code 0
CC(target) Release/obj.target/output/deps/mpg123/src/output/coreaudio.o
LIBTOOL-STATIC Release/liboutput.a
CXX(target) Release/obj.target/binding/src/binding.o
../src/binding.cc:1:20: fatal error: string.h: No such file or directory
#include <string.h>
^
compilation terminated.
make: *** [Release/obj.target/binding/src/binding.o] Error 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.