TooTallNate / node-speaker

Output PCM audio data to the speakers
649 stars 145 forks source link

failed to install v0.2.5 on OS X 10.10.3 with io.js v2.0.1 #53

Open leungwensen opened 9 years ago

leungwensen commented 9 years ago

logs:

    909 verbose rebuildBundles [ 'bindings', 'debug', 'nan', 'readable-stream' ]
    910 info install speaker@0.2.5
    911 verbose unsafe-perm in lifecycle true
    912 info speaker@0.2.5 Failed to exec install script
    913 verbose unlock done using /Users/liangwensen/.npm/_locks/speaker-426051877ea3cabd.lock for /Users/liangwensen/.nvm/versions/io.js/v2.0.1/lib/node_modules/speaker
    914 verbose stack Error: speaker@0.2.5 install: `node-gyp rebuild`
    914 verbose stack Exit status 1
    914 verbose stack     at EventEmitter.<anonymous> (/Users/liangwensen/.nvm/versions/io.js/v2.0.1/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
    914 verbose stack     at emitTwo (events.js:87:13)
    914 verbose stack     at EventEmitter.emit (events.js:169:7)
    914 verbose stack     at ChildProcess.<anonymous> (/Users/liangwensen/.nvm/versions/io.js/v2.0.1/lib/node_modules/npm/lib/utils/spawn.js:24:14)
    914 verbose stack     at emitTwo (events.js:87:13)
    914 verbose stack     at ChildProcess.emit (events.js:169:7)
    914 verbose stack     at maybeClose (child_process.js:953:16)
    914 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1020:5)
    915 verbose pkgid speaker@0.2.5
    916 verbose cwd /Users/liangwensen
    917 error Darwin 14.3.0
    918 error argv "/Users/liangwensen/.nvm/versions/io.js/v2.0.1/bin/iojs" "/Users/liangwensen/.nvm/versions/io.js/v2.0.1/bin/npm" "install" "speaker" "-g"
    919 error node v2.0.1
    920 error npm  v2.9.0
    921 error code ELIFECYCLE
    922 error speaker@0.2.5 install: `node-gyp rebuild`
    922 error Exit status 1
    923 error Failed at the speaker@0.2.5 install script 'node-gyp rebuild'.
    923 error This is most likely a problem with the speaker package,
    923 error not with npm itself.
    923 error Tell the author that this fails on your system:
    923 error     node-gyp rebuild
    923 error You can get their info via:
    923 error     npm owner ls speaker
    923 error There is likely additional logging output above.

environment:

need your help here, thanks!

seppevs commented 9 years ago

I have the same issue on Linux:

5876 verbose unlock done using /home/pi/.npm/_locks/lame-d990ccdfffb79554.lock for /home/pi/speech/node_modules/say-something/node_modules/lame
5877 verbose about to build /home/pi/speech/node_modules/say-something
5878 verbose unlock done using /home/pi/.npm/_locks/say-something-b3e8101fb89068cf.lock for /home/pi/speech/node_modules/say-something
5879 verbose stack Error: speaker@0.2.5 install: `node-gyp rebuild`
5879 verbose stack Exit status 1
5879 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
5879 verbose stack     at EventEmitter.emit (events.js:110:17)
5879 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:14:12)
5879 verbose stack     at ChildProcess.emit (events.js:110:17)
5879 verbose stack     at maybeClose (child_process.js:1008:16)
5879 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
5880 verbose pkgid speaker@0.2.5
5881 verbose cwd /home/pi/speech
5882 error Linux 3.18.11+
5883 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "say-something" "--save"
5884 error node v0.12.0
5885 error npm  v2.5.1
5886 error code ELIFECYCLE
5887 error speaker@0.2.5 install: `node-gyp rebuild`
5887 error Exit status 1
5888 error Failed at the speaker@0.2.5 install script 'node-gyp rebuild'.
5888 error This is most likely a problem with the speaker package,
5888 error not with npm itself.
5888 error Tell the author that this fails on your system:
5888 error     node-gyp rebuild
5888 error You can get their info via:
5888 error     npm owner ls speaker
5888 error There is likely additional logging output above.
5889 verbose exit [ 1, true ]
5890 verbose unbuild node_modules/say-something/node_modules/speaker
bjackson commented 9 years ago

I'm getting the same thing. I'm on Yosemite.

gordomium commented 9 years ago

Me too, on Yosemite 10.10.4

> speaker@0.2.5 install /Volumes/Transcend/Music/.test-player/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:
In file included from ../node_modules/nan/nan.h:80:
In file included from ../node_modules/nan/nan_new.h:190:
../node_modules/nan/nan_implementation_12_inl.h:181:66: error: too many arguments to function call, expected at most 2, have 4
  return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
         ~~~~~~~~~~~~~~~~~~                                      ^~~~~~~~~~
/Users/gordomium/.node-gyp/2.3.4/deps/v8/include/v8.h:4188:3: note: 'New' declared here
  static Local<Signature> New(
  ^
1 error 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 (/Users/gordomium/.nvm/versions/io.js/v2.3.4/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.4.0
gyp ERR! command "/Users/gordomium/.nvm/versions/io.js/v2.3.4/bin/iojs" "/Users/gordomium/.nvm/versions/io.js/v2.3.4/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Volumes/Transcend/Music/.test-player/node_modules/speaker
gyp ERR! node -v v2.3.4
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Darwin 14.4.0
npm ERR! argv "/Users/gordomium/.nvm/versions/io.js/v2.3.4/bin/iojs" "/Users/gordomium/.nvm/versions/io.js/v2.3.4/bin/npm" "i" "speaker" "--save"
npm ERR! node v2.3.4
npm ERR! npm  v2.12.1
npm ERR! code ELIFECYCLE

npm ERR! speaker@0.2.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the speaker@0.2.5 install script 'node-gyp rebuild'.
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.
justinmchase commented 9 years ago

I believe the nan module needs to be udpated to 1.8.4, then this should be fixed.