estbeetoo / node-red-contrib-kodi

Node-RED plugin (node) to communicate with Kodi/XBMC
Other
3 stars 4 forks source link

Lots of errors on install #3

Closed JonSilver closed 5 years ago

JonSilver commented 7 years ago

Node-red 0.14.6, raspberry pi 3, raspbian jessie lite may 2016 plus updates

`pi@nodered-pi:~/.node-red $ npm install node-red-contrib-kodi npm WARN peerDependencies The peer dependency eslint@<2.3.0 included from babel-eslint will no npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly. \

utf-8-validate@1.1.0 install /home/pi/.node-red/node_modules/node-red-contrib-kodi/node_modules/kodi-ws/node_modules/ws/node_modules/utf-8-validate node-gyp rebuild

make: Entering directory '/home/pi/.node-red/node_modules/node-red-contrib-kodi/node_modules/kodi-ws/node_modules/ws/node_modules/utf-8-validate/build' CXX(target) Release/obj.target/validation/src/validation.o In file included from ../src/validation.cc:15:0: ../node_modules/nan/nan.h:261:25: error: redefinition of ‘template v8::Local _NanEnsureLocal(v8::Local)’ NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) { ^ ../node_modules/nan/nan.h:256:25: note: ‘template v8::Local _NanEnsureLocal(v8::Handle)’ previously declared here NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) { ^ ../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared , node::smalloc::FreeCallback callback ^ ../node_modules/nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’ , node::smalloc::FreeCallback callback ^ ../nodemodules/nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(char, size_t, int)’: ../node_modules/nan/nan.h:665:50: error: ‘callback’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ../nodemodules/nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char, uint32_t)’: ../nodemodules/nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate, const char_&, uint32_t&)’ is ambiguous return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); ^ ../node_modules/nan/nan.h:672:67: note: candidates are: In file included from ../src/validation.cc:10:0: /home/pi/.node-gyp/4.5.0/include/node/nodebuffer.h:34:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate, v8::Localv8::String, node::encoding) NODEEXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, ^ /home/pi/.node-gyp/4.5.0/include/node/node_buffer.h:34:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’ /home/pi/.node-gyp/4.5.0/include/node/nodebuffer.h:46:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate, char_, size_t) NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, ^ /home/pi/.node-gyp/4.5.0/include/node/nodebuffer.h:46:40: note: no known conversion for argument 2 from ‘const char’ to ‘char_’ In file included from ../src/validation.cc:15:0: ../node_modules/nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(uint32_t)’: ../node_modules/nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), size)’ from ‘v8::MaybeLocalv8::Object’ to ‘v8::Localv8::Object’ return node::Buffer::New(v8::Isolate::GetCurrent(), size); ^ ../nodemodules/nan/nan.h: In function ‘v8::Localv8::Object NanBufferUse(char, uint32_t)’: ../nodemodules/nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’ return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size); ^ validation.target.mk:96: recipe for target 'Release/obj.target/validation/src/validation.o' failed make: ** [Release/obj.target/validation/src/validation.o] Error 1 make: Leaving directory '/home/pi/.node-red/node_modules/node-red-contrib-kodi/node_modules/kodi-ws/node_modules/ws/node_modules/utf-8-validate/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.13-v7+ gyp ERR! command "/usr/bin/nodejs" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/.node-red/node_modules/node-red-contrib-kodi/node_modules/kodi-ws/node_modules/ws/node_modules/utf-8-validate gyp ERR! node -v v4.5.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok

bufferutil@1.1.0 install /home/pi/.node-red/node_modules/node-red-contrib-kodi/node_modules/kodi-ws/node_modules/ws/node_modules/bufferutil node-gyp rebuild

make: Entering directory '/home/pi/.node-red/node_modules/node-red-contrib-kodi/node_modules/kodi-ws/node_modules/ws/node_modules/bufferutil/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o In file included from ../src/bufferutil.cc:16:0: ../node_modules/nan/nan.h:261:25: error: redefinition of ‘template v8::Local _NanEnsureLocal(v8::Local)’ NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) { ^ ../node_modules/nan/nan.h:256:25: note: ‘template v8::Local _NanEnsureLocal(v8::Handle)’ previously declared here NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) { ^ ../node_modules/nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared , node::smalloc::FreeCallback callback ^ ../node_modules/nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’ , node::smalloc::FreeCallback callback ^ ../nodemodules/nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(char, size_t, int)’: ../node_modules/nan/nan.h:665:50: error: ‘callback’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ../node_modules/nan/nan.h:665:60: error: ‘hint’ was not declared in this scope v8::Isolate::GetCurrent(), data, length, callback, hint); ^ ../nodemodules/nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char, uint32_t)’: ../nodemodules/nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate, const char_&, uint32_t&)’ is ambiguous return node::Buffer::New(v8::Isolate::GetCurrent(), data, size); ^ ../node_modules/nan/nan.h:672:67: note: candidates are: In file included from ../src/bufferutil.cc:10:0: /home/pi/.node-gyp/4.5.0/include/node/nodebuffer.h:34:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate, v8::Localv8::String, node::encoding) NODEEXTERN v8::MaybeLocalv8::Object New(v8::Isolate isolate, ^ /home/pi/.node-gyp/4.5.0/include/node/node_buffer.h:34:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’ /home/pi/.node-gyp/4.5.0/include/node/nodebuffer.h:46:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate, char_, size_t) NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate, ^ /home/pi/.node-gyp/4.5.0/include/node/nodebuffer.h:46:40: note: no known conversion for argument 2 from ‘const char’ to ‘char_’ In file included from ../src/bufferutil.cc:16:0: ../node_modules/nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(uint32_t)’: ../node_modules/nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), size)’ from ‘v8::MaybeLocalv8::Object’ to ‘v8::Localv8::Object’ return node::Buffer::New(v8::Isolate::GetCurrent(), size); ^ ../nodemodules/nan/nan.h: In function ‘v8::Localv8::Object NanBufferUse(char, uint32_t)’: ../nodemodules/nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’ return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size); ^ bufferutil.target.mk:96: recipe for target 'Release/obj.target/bufferutil/src/bufferutil.o' failed make: ** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1 make: Leaving directory '/home/pi/.node-red/node_modules/node-red-contrib-kodi/node_modules/kodi-ws/node_modules/ws/node_modules/bufferutil/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.13-v7+ gyp ERR! command "/usr/bin/nodejs" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/.node-red/node_modules/node-red-contrib-kodi/node_modules/kodi-ws/node_modules/ws/node_modules/bufferutil gyp ERR! node -v v4.5.0 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok npm WARN optional dep failed, continuing utf-8-validate@1.1.0 npm WARN optional dep failed, continuing bufferutil@1.1.0 node-red-contrib-kodi@0.2.7 node_modules/node-red-contrib-kodi ├── machina@1.1.2 (lodash@3.10.1) └── kodi-ws@2.4.2 (set-value@0.2.0, has-value@0.2.1, jrpc-schema@2.1.0, eslint@2.2.0, babel-eslint@5.0.4, ws@0.7.2) `

aborovsky commented 7 years ago

Hi, @JonSilver, the version of your Node-RED is 0.14.6 and what is node.js's version? If it's something near 0.. try to updated, please.

JonSilver commented 7 years ago

Nope, @aborovsky, it's running on node.js v4.5.0 LTS, and the npm being used for the installer is v2.15.11.

aborovsky commented 5 years ago

@JonSilver are you still experiencing troubles with fresh raspbian?