guo-yu/douban.fm

安装失败

volfmath opened this issue · 1 comments

oujundeMacBook-Pro:~ oujun$ sudo npm install douban.fm -g \

     --disturl=http://dist.u.qiniudn.com \
     --registry=http://r.cnpmjs.org

npm WARN deprecated lodash@2.4.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated has-color@0.1.7: Renamed to supports-color. If you're using chalk, upgrade to the latest version. https://github.com/chalk/supports-color
/usr/local/bin/douban.fm -> /usr/local/lib/node_modules/douban.fm/bin/start.sh
/usr/local/bin/dev.douban.fm -> /usr/local/lib/node_modules/douban.fm/bin/dev.sh
/usr/local/bin/core.douban.fm -> /usr/local/lib/node_modules/douban.fm/bin/cli
/usr/local/bin/doubanfm -> /usr/local/lib/node_modules/douban.fm/bin/cli

speaker@0.2.1 install /usr/local/lib/node_modules/douban.fm/node_modules/speaker
node-gyp rebuild

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
In file included from ../src/binding.cc:8:
In file included from ../src/node_pointer.h:7:
../../nan/nan.h:342:68: error: too many arguments to function call, expected at
most 2, have 4
return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/Users/oujun/.node-gyp/5.6.0/include/node/v8.h:4674:3: note: 'New' declared here
static Local New(
^
In file included from ../src/binding.cc:8:
In file included from ../src/node_pointer.h:7:
../../nan/nan.h:424:3: error: redefinition of 'NanNew'
NanNew<v8::StringObject, v8::Handlev8::String >(
^
../../nan/nan.h:417:3: note: previous definition is here
NanNew<v8::StringObject, v8::Localv8::String >(
^
../../nan/nan.h:442:36: error: redefinition of 'NanNew'
NAN_INLINE v8::Localv8::RegExp NanNew(
^
../../nan/nan.h:436:36: note: previous definition is here
NAN_INLINE v8::Localv8::RegExp NanNew(
^
../../nan/nan.h:454:36: error: redefinition of 'NanNew'
NAN_INLINE v8::Localv8::RegExp NanNew(
^
../../nan/nan.h:448:36: note: previous definition is here
NAN_INLINE v8::Localv8::RegExp NanNew(
^
../../nan/nan.h:623:19: error: no type named 'ExternalAsciiStringResource' in
'v8::String'; did you mean 'ExternalStringResource'?
v8::String::ExternalAsciiStringResource *resource) {
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
ExternalStringResource
/Users/oujun/.node-gyp/5.6.0/include/node/v8.h:2207:19: note:
'ExternalStringResource' declared here
class V8_EXPORT ExternalStringResource
^
In file included from ../src/binding.cc:8:
In file included from ../src/node_pointer.h:7:
../../nan/nan.h:622:36: error: redefinition of 'NanNew'
NAN_INLINE v8::Localv8::String NanNew(
^
../../nan/nan.h:617:36: note: previous definition is here
NAN_INLINE v8::Localv8::String NanNew(
^
../../nan/nan.h:637:27: error: redefinition of '_NanEscapeScopeHelper'
NAN_INLINE v8::Local _NanEscapeScopeHelper(v8::Local val) {
^
../../nan/nan.h:632:27: note: previous definition is here
NAN_INLINE v8::Local _NanEscapeScopeHelper(v8::Handle val) {
^
../../nan/nan.h:653:12: error: no matching function for call to
'_NanEscapeScopeHelper'
return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:641:43: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

                                      ^~~~~~~~~~~~~~~~~~~~~

../../nan/nan.h:637:27: note: candidate template ignored: substitution failure
[with T = v8::Primitive]
NAN_INLINE v8::Local _NanEscapeScopeHelper(v8::Local val) {
^
../../nan/nan.h:658:12: error: no matching function for call to
'_NanEscapeScopeHelper'
return NanEscapeScope(NanNew(v8::Null(v8::Isolate::GetCurrent())));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:641:43: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

                                      ^~~~~~~~~~~~~~~~~~~~~

../../nan/nan.h:637:27: note: candidate template ignored: substitution failure
[with T = v8::Primitive]
NAN_INLINE v8::Local _NanEscapeScopeHelper(v8::Local val) {
^
../../nan/nan.h:663:12: error: no matching function for call to
'_NanEscapeScopeHelper'
return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:641:43: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

                                      ^~~~~~~~~~~~~~~~~~~~~

../../nan/nan.h:637:27: note: candidate template ignored: substitution failure
[with T = v8::Boolean]
NAN_INLINE v8::Local _NanEscapeScopeHelper(v8::Local val) {
^
../../nan/nan.h:668:12: error: no matching function for call to
'_NanEscapeScopeHelper'
return NanEscapeScope(NanNew(v8::False(v8::Isolate::GetCurrent())));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:641:43: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

                                      ^~~~~~~~~~~~~~~~~~~~~

../../nan/nan.h:637:27: note: candidate template ignored: substitution failure
[with T = v8::Boolean]
NAN_INLINE v8::Local _NanEscapeScopeHelper(v8::Local val) {
^
../../nan/nan.h:889:13: error: no member named 'smalloc' in namespace 'node'
, node::smalloc::FreeCallback callback
~~~~~~^
../../nan/nan.h:900:12: error: no matching function for call to 'New'
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^~~~~~~~~~~~~~~~~
/Users/oujun/.node-gyp/5.6.0/include/node/node_buffer.h:31:40: note: candidate
function not viable: no known conversion from 'uint32_t'
(aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/Users/oujun/.node-gyp/5.6.0/include/node/node_buffer.h:43:40: note: candidate
function not viable: 2nd argument ('const char ') would lose const
qualifier
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate
isolate,
^
/Users/oujun/.node-gyp/5.6.0/include/node/node_buffer.h:28:40: note: candidate
function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, size_t length);
^
/Users/oujun/.node-gyp/5.6.0/include/node/node_buffer.h:36:40: note: candidate
function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
In file included from ../src/binding.cc:8:
In file included from ../src/node_pointer.h:7:
../../nan/nan.h:904:12: error: no viable conversion from
'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object'
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/oujun/.node-gyp/5.6.0/include/node/v8.h:210:7: note: candidate
constructor (the implicit copy constructor) not viable: no known
conversion from 'v8::MaybeLocalv8::Object' to 'const
v8::Localv8::Object &' for 1st argument
class Local {
^
/Users/oujun/.node-gyp/5.6.0/include/node/v8.h:210:7: note: candidate
constructor (the implicit move constructor) not viable: no known
conversion from 'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object &&'
for 1st argument
class Local {
^
/Users/oujun/.node-gyp/5.6.0/include/node/v8.h:214:13: note: candidate template
ignored: could not match 'Local' against 'MaybeLocal'
V8_INLINE Local(Local that)
^
/Users/oujun/.node-gyp/5.6.0/include/node/v8.h:326:13: note: candidate template
ignored: could not match 'S ' against 'v8::MaybeLocalv8::Object'
V8_INLINE Local(S
that)
^
In file included from ../src/binding.cc:8:
In file included from ../src/node_pointer.h:7:
../../nan/nan.h:911:26: error: no member named 'Use' in namespace 'node::Buffer'
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
~~~~~~~~~~~~~~^
../../nan/nan.h:1700:12: error: no matching function for call to
'_NanEscapeScopeHelper'
return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:641:43: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

                                      ^~~~~~~~~~~~~~~~~~~~~

../../nan/nan.h:637:27: note: candidate template ignored: substitution failure
[with T = v8::Function]
NAN_INLINE v8::Local _NanEscapeScopeHelper(v8::Local val) {
^
../../nan/nan.h:1787:12: error: no matching function for call to
'_NanEscapeScopeHelper'
return NanEscapeScope(handle->Get(NanNew(key)).Asv8::Object());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:641:43: note: expanded from macro 'NanEscapeScope'

define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

                                      ^~~~~~~~~~~~~~~~~~~~~

../../nan/nan.h:637:27: note: candidate template ignored: substitution failure
[with T = v8::Object]
NAN_INLINE v8::Local _NanEscapeScopeHelper(v8::Local val) {
^
../../nan/nan.h:1993:12: error: no member named 'IsExternalAscii' in
'v8::String'; did you mean 'IsExternal'?
if (str->IsExternalAscii()) {
^~~~~~~~~~~~~~~
IsExternal
/Users/oujun/.node-gyp/5.6.0/include/node/v8.h:2171:8: note: 'IsExternal'
declared here
bool IsExternal() const;
^
In file included from ../src/binding.cc:8:
In file included from ../src/node_pointer.h:7:
../../nan/nan.h:1994:23: error: no type named 'ExternalAsciiStringResource' in
'v8::String'; did you mean 'ExternalStringResource'?
const v8::String::ExternalAsciiStringResource* ext;
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
ExternalStringResource
/Users/oujun/.node-gyp/5.6.0/include/node/v8.h:2207:19: note:
'ExternalStringResource' declared here
class V8_EXPORT ExternalStringResource
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/binding/src/binding.o] 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:276:23)
gyp ERR! stack at emitTwo (events.js💯13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.3.0
gyp ERR! command "/usr/local/bin/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/speaker
gyp ERR! node -v v5.6.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
/usr/local/lib
└── (empty)

npm ERR! Darwin 15.3.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "douban.fm" "-g" "--disturl=http://dist.u.qiniudn.com" "--registry=http://r.cnpmjs.org"
npm ERR! node v5.6.0
npm ERR! npm v3.6.0
npm ERR! code ELIFECYCLE

npm ERR! speaker@0.2.1 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the speaker@0.2.1 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, 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 information on how to open an issue for this project with:
npm ERR! npm bugs speaker
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls speaker
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/oujun/npm-debug.log
npm ERR! code 1
#139 #139

作者应该不再维护了。。。自己撸一个吧