-
Notifications
You must be signed in to change notification settings - Fork 13
cannot get it to install, here is my error #2
Description
ake: Entering directory '/home/odix/public_html/modus/TouchDJ/server/node_modules/midi/build'
CXX(target) Release/obj.target/midi/src/node-midi.o
../src/node-midi.cpp:51:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handlev8::Value New(const v8::Arguments& args)
starts there...
then...too much to post but here is tail end of it
pm ERR! Linux 4.4.0-53-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! midi@0.7.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the midi@0.7.0 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 midi 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 midi
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls midi
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/odix/public_html/modus/TouchDJ/server/npm-debug.log
odix@odix ~/public_html/modus/TouchDJ/server $ sudo npm install
midi@0.7.0 install /home/odix/public_html/modus/TouchDJ/server/node_modules/midi
node-gyp rebuild
make: Entering directory '/home/odix/public_html/modus/TouchDJ/server/node_modules/midi/build'
CXX(target) Release/obj.target/midi/src/node-midi.o
../src/node-midi.cpp:51:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handlev8::Value New(const v8::Arguments& args)
^
../src/node-midi.cpp:59:57: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handlev8::Value GetPortCount(const v8::Arguments& args)
^
../src/node-midi.cpp:67:56: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handlev8::Value GetPortName(const v8::Arguments& args)
^
../src/node-midi.cpp:80:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handlev8::Value OpenPort(const v8::Arguments& args)
^
../src/node-midi.cpp:97:60: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handlev8::Value OpenVirtualPort(const v8::Arguments& args)
^
../src/node-midi.cpp:110:54: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handlev8::Value ClosePort(const v8::Arguments& args)
^
../src/node-midi.cpp:118:56: error: ‘Arguments’ in namespace ‘v8’ does not name a type
static v8::Handlev8::Value SendMessage(const v8::Arguments& args)
^
In file included from ../src/node-midi.cpp:1:0:
/home/odix/.node-gyp/6.9.5/include/node/v8.h: In static member function ‘static void NodeMidiOutput::Init(v8::Handlev8::Object)’:
/home/odix/.node-gyp/6.9.5/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
../src/node-midi.cpp:20:25: error: within this context
v8::HandleScope scope;
^
../src/node-midi.cpp:22:74: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handlev8::Value (&)(const int&))’
v8::Localv8::FunctionTemplate t = v8::FunctionTemplate::New(New);
^
In file included from ../src/node-midi.cpp:1:0:
/home/odix/.node-gyp/6.9.5/include/node/v8.h:4483:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int)
static Local New(
^
/home/odix/.node-gyp/6.9.5/include/node/v8.h:4483:34: note: no known conversion for argument 1 from ‘v8::Handlev8::Value(const int&) {aka v8::Localv8::Value(const int&)}’ to ‘v8::Isolate*’
/home/odix/.node-gyp/6.9.5/include/node/v8.h:4487:34: note: candidate: static v8::Localv8::FunctionTemplate v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Localv8::Value, v8::Localv8::Signature, int, v8::ConstructorBehavior)
static Local New(
^
/home/odix/.node-gyp/6.9.5/include/node/v8.h:4487:34: note: candidate expects 6 arguments, 1 provided
../src/node-midi.cpp:24:59: error: no matching function for call to ‘v8::Persistentv8::FunctionTemplate::New(v8::Localv8::FunctionTemplate&)’
s_ct = v8::Persistentv8::FunctionTemplate::New(t);
^
In file included from ../src/node-midi.cpp:1:0:
/home/odix/.node-gyp/6.9.5/include/node/v8.h:7554:4: note: candidate: static T* v8::PersistentBase::New(v8::Isolate*, T*) [with T = v8::FunctionTemplate]
T* PersistentBase::New(Isolate* isolate, T* that) {
^
/home/odix/.node-gyp/6.9.5/include/node/v8.h:7554:4: note: candidate expects 2 arguments, 1 provided
../src/node-midi.cpp:25:13: error: base operand of ‘->’ has non-pointer type ‘v8::Persistentv8::FunctionTemplate’
s_ct->InstanceTemplate()->SetInternalFieldCount(1);
^
../src/node-midi.cpp:26:13: error: base operand of ‘->’ has non-pointer type ‘v8::Persistentv8::FunctionTemplate’
s_ct->SetClassName(v8::String::NewSymbol("NodeMidiOutput"));
^
../src/node-midi.cpp:26:28: error: ‘NewSymbol’ is not a member of ‘v8::String’
s_ct->SetClassName(v8::String::NewSymbol("NodeMidiOutput"));
^
../src/node-midi.cpp:28:69: error: could not convert ‘NodeMidiOutput::s_ct’ from ‘v8::Persistentv8::FunctionTemplate’ to ‘v8::Localv8::FunctionTemplate’
NODE_SET_PROTOTYPE_METHOD(s_ct, "getPortCount", GetPortCount);
^
../src/node-midi.cpp:29:67: error: could not convert ‘NodeMidiOutput::s_ct’ from ‘v8::Persistentv8::FunctionTemplate’ to ‘v8::Localv8::FunctionTemplate’
NODE_SET_PROTOTYPE_METHOD(s_ct, "getPortName", GetPortName);
^
../src/node-midi.cpp:31:61: error: could not convert ‘NodeMidiOutput::s_ct’ from ‘v8::Persistentv8::FunctionTemplate’ to ‘v8::Localv8::FunctionTemplate’
NODE_SET_PROTOTYPE_METHOD(s_ct, "openPort", OpenPort);
^
../src/node-midi.cpp:32:75: error: could not convert ‘NodeMidiOutput::s_ct’