$ npm install alsa / > alsa@0.0.2 install /home/pi/projects/audio/node/node_modules/alsa > node-gyp rebuild make: Entering directory '/home/pi/projects/audio/node/node_modules/alsa/build' CXX(target) Release/obj.target/alsa/alsa.o In file included from ../alsa.cc:3:0: ../pcm.h:16:31: error: expected class-name before ‘{’ token class Pcm : public ObjectWrap { ^ ../pcm.h:48:5: error: ‘uv_work_t’ does not name a type uv_work_t request; ^ ../pcm.h:100:34: error: ‘Arguments’ does not name a type static Handle New(const Arguments& args); ^ ../pcm.h:101:35: error: ‘Arguments’ does not name a type static Handle Open(const Arguments& args); ^ ../pcm.h:102:36: error: ‘Arguments’ does not name a type static Handle Close(const Arguments& args); ^ ../pcm.h:103:35: error: ‘Arguments’ does not name a type static Handle Read(const Arguments& args); ^ ../pcm.h:104:36: error: ‘Arguments’ does not name a type static Handle Write(const Arguments& args); ^ ../pcm.h:106:62: error: ‘AccessorInfo’ does not name a type static Handle OpenedGetter(Local str, const AccessorInfo& accessor); ^ ../pcm.h:107:64: error: ‘AccessorInfo’ does not name a type static Handle ReadableGetter(Local str, const AccessorInfo& accessor); ^ ../pcm.h:108:64: error: ‘AccessorInfo’ does not name a type static Handle WritableGetter(Local str, const AccessorInfo& accessor); ^ ../pcm.h:111:22: error: ‘uv_work_t’ has not been declared static void DoRead(uv_work_t* req); ^ ../pcm.h:112:25: error: ‘uv_work_t’ has not been declared static void AfterRead(uv_work_t* req); ^ ../pcm.h:115:23: error: ‘uv_work_t’ has not been declared static void DoClose(uv_work_t* req); ^ ../pcm.h:116:26: error: ‘uv_work_t’ has not been declared static void AfterClose(uv_work_t* req); ^ ../pcm.h:119:23: error: ‘uv_work_t’ has not been declared static void DoWrite(uv_work_t* req); ^ ../pcm.h:120:26: error: ‘uv_work_t’ has not been declared static void AfterWrite(uv_work_t* req); ^ ../pcm.h: In constructor ‘alsa::Pcm::Pcm()’: ../pcm.h:21:11: error: class ‘alsa::Pcm’ does not have any field named ‘ObjectWrap’ Pcm() : ObjectWrap(), ^ ../pcm.h: In constructor ‘alsa::Pcm::Baton::Baton(alsa::Pcm*, v8::Handle)’: ../pcm.h:54:12: error: ‘class alsa::Pcm’ has no member named ‘Ref’ pcm->Ref(); ^ ../pcm.h:55:7: error: ‘request’ was not declared in this scope request.data = this; ^ ../pcm.h:56:47: error: no matching function for call to ‘v8::Persistent::New(v8::Handle&)’ callback = Persistent::New(cb_); ^ ../pcm.h:56:47: note: candidate is: In file included from /home/pi/.node-gyp/4.4.7/include/node/node.h:42:0, from ../alsa.cc:1: /home/pi/.node-gyp/4.4.7/include/node/v8.h:7181:4: note: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::Function] T* PersistentBase::New(Isolate* isolate, T* that) { ^ /home/pi/.node-gyp/4.4.7/include/node/v8.h:7181:4: note: candidate expects 2 arguments, 1 provided In file included from ../alsa.cc:3:0: ../pcm.h: In destructor ‘virtual alsa::Pcm::Baton::~Baton()’: ../pcm.h:59:12: error: ‘class alsa::Pcm’ has no member named ‘Unref’ pcm->Unref(); ^ ../pcm.h:60:16: error: ‘class v8::Persistent’ has no member named ‘Dispose’ callback.Dispose(); ^ alsa.target.mk:87: recipe for target 'Release/obj.target/alsa/alsa.o' failed make: *** [Release/obj.target/alsa/alsa.o] Error 1 make: Leaving directory '/home/pi/projects/audio/node/node_modules/alsa/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:276: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 Linux 4.4.11-v7+ 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 /home/pi/projects/audio/node/node_modules/alsa gyp ERR! node -v v4.4.7 gyp ERR! node-gyp -v v3.3.1 gyp ERR! not ok npm ERR! Linux 4.4.11-v7+ npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "alsa" npm ERR! node v4.4.7 npm ERR! npm v2.15.8 npm ERR! code ELIFECYCLE npm ERR! alsa@0.0.2 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the alsa@0.0.2 install script 'node-gyp rebuild'. npm ERR! This is most likely a problem with the alsa 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 alsa npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls alsa npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/pi/projects/audio/node/npm-debug.log