Advertisement
Guest User

Untitled

a guest
Dec 12th, 2016
2,776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 11.41 KB | None | 0 0
  1. 1. Bringing base dependencies up to date...
  2. Error: Command failed: /usr/bin/env npm i --production
  3. gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
  4. gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
  5. gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
  6. ../deps/libmagic/src/cdf.c: In function ‘cdf_read’:
  7. ../deps/libmagic/src/cdf.c:306:2: warning: implicit declaration of function ‘pread’ [-Wimplicit-function-declaration]
  8.   if (pread(info->i_fd, buf, len, off) != (ssize_t)len)
  9.   ^
  10. In file included from ../src/magic.cc:3:0:
  11. ../node_modules/nan/nan.h:324:27: error: redefinition of ‘template<class T> v8::Local<T> Nan::imp::NanEnsureHandleOrPersistent(const v8::Local<T>&)
  12.    NAN_INLINE v8::Local<T> NanEnsureHandleOrPersistent(const v8::Local<T> &val) {
  13.                            ^
  14. ../node_modules/nan/nan.h:319:17: error: ‘template<class T> v8::Handle<T> Nan::imp::NanEnsureHandleOrPersistent(v8::Handle<T>&)’ previously declared here
  15.    v8::Handle<T> NanEnsureHandleOrPersistent(const v8::Handle<T> &val) {
  16.                  ^
  17. ../node_modules/nan/nan.h:344:27: error: redefinition of ‘template<class T> v8::Local<T> Nan::imp::NanEnsureLocal(v8::Handle<T>&)
  18.    NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Handle<T> &val) {
  19.                            ^
  20. ../node_modules/nan/nan.h:334:27: error: ‘template<class T> v8::Local<T> Nan::imp::NanEnsureLocal(const v8::Local<T>&)’ previously declared here
  21.    NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Local<T> &val) {
  22.                            ^
  23. ../node_modules/nan/nan.h:757:13: error: ‘node::smalloc’ has not been declared
  24.      , node::smalloc::FreeCallback callback
  25.              ^
  26. ../node_modules/nan/nan.h:757:35: error: expected ‘,’ or ‘...’ before ‘callback’
  27.      , node::smalloc::FreeCallback callback
  28.                                    ^
  29. ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
  30. ../node_modules/nan/nan.h:761:50: error: ‘callback’ was not declared in this scope
  31.          v8::Isolate::GetCurrent(), data, length, callback, hint);
  32.                                                   ^
  33. ../node_modules/nan/nan.h:761:60: error: ‘hint’ was not declared in this scope
  34.          v8::Isolate::GetCurrent(), data, length, callback, hint);
  35.                                                             ^
  36. ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
  37. ../node_modules/nan/nan.h:768:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous
  38.      return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
  39.                                                                    ^
  40. ../node_modules/nan/nan.h:768:67: note: candidates are:
  41. In file included from ../src/magic.cc:2:0:
  42. /root/.node-gyp/4.4.3/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
  43.  NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
  44.                                         ^
  45. /root/.node-gyp/4.4.3/include/node/node_buffer.h:31:40: note:   no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’
  46. /root/.node-gyp/4.4.3/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>
  47.  NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
  48.                                         ^
  49. /root/.node-gyp/4.4.3/include/node/node_buffer.h:43:40: note:   no known conversion for argument 2 from ‘const char*’ to ‘char*
  50. In file included from ../src/magic.cc:3:0:
  51. ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
  52. ../node_modules/nan/nan.h:772:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>
  53.      return node::Buffer::New(v8::Isolate::GetCurrent(), size);
  54.                                                              ^
  55. ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
  56. ../node_modules/nan/nan.h:779:12: error: ‘Use’ is not a member of ‘node::Buffer’
  57.      return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
  58.             ^
  59. ```
  60. ```
  61. make: *** [Release/obj.target/magic/src/magic.o] Error 1
  62. gyp ERR! build error
  63. gyp ERR! stack Error: `make` failed with exit code: 2
  64. gyp ERR! stack     at ChildProcess.onExit (/root/.nvm/v4.4.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
  65. gyp ERR! stack     at emitTwo (events.js:87:13)
  66. gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
  67. gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
  68. gyp ERR! System Linux 3.10.0-123.8.1.el7.x86_64
  69. gyp ERR! command "/root/.nvm/v4.4.3/bin/node" "/root/.nvm/v4.4.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
  70. gyp ERR! cwd /root/nodebb/node_modules/mmmagic
  71. gyp ERR! node -v v4.4.3
  72. gyp ERR! node-gyp -v v3.3.1
  73. gyp ERR! not ok
  74. gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
  75. gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
  76. gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
  77. In file included from ../src/decoder/decoder.h:13:0,
  78.                  from ../src/decoder/init.cpp:1:
  79. ../node_modules/nan/nan.h:324:27: error: redefinition of ‘template<class T> v8::Local<T> Nan::imp::NanEnsureHandleOrPersistent(const v8::Local<T>&)
  80.    NAN_INLINE v8::Local<T> NanEnsureHandleOrPersistent(const v8::Local<T> &val) {
  81.                            ^
  82. ../node_modules/nan/nan.h:319:17: error: ‘template<class T> v8::Handle<T> Nan::imp::NanEnsureHandleOrPersistent(v8::Handle<T>&)’ previously declared here
  83.    v8::Handle<T> NanEnsureHandleOrPersistent(const v8::Handle<T> &val) {
  84.                  ^
  85. ../node_modules/nan/nan.h:344:27: error: redefinition of ‘template<class T> v8::Local<T> Nan::imp::NanEnsureLocal(v8::Handle<T>&)
  86.    NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Handle<T> &val) {
  87.                            ^
  88. ../node_modules/nan/nan.h:334:27: error: ‘template<class T> v8::Local<T> Nan::imp::NanEnsureLocal(const v8::Local<T>&)’ previously declared here
  89.    NAN_INLINE v8::Local<T> NanEnsureLocal(const v8::Local<T> &val) {
  90.                            ^
  91. ../node_modules/nan/nan.h:757:13: error: ‘node::smalloc’ has not been declared
  92.      , node::smalloc::FreeCallback callback
  93.              ^
  94. ../node_modules/nan/nan.h:757:35: error: expected ‘,’ or ‘...’ before ‘callback’
  95.      , node::smalloc::FreeCallback callback
  96.                                    ^
  97. ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(char*, size_t, int)’:
  98. ../node_modules/nan/nan.h:761:50: error: ‘callback’ was not declared in this scope
  99.          v8::Isolate::GetCurrent(), data, length, callback, hint);
  100.                                                   ^
  101. ../node_modules/nan/nan.h:761:60: error: ‘hint’ was not declared in this scope
  102.          v8::Isolate::GetCurrent(), data, length, callback, hint);
  103.                                                             ^
  104. ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(const char*, uint32_t)’:
  105. ../node_modules/nan/nan.h:768:67: error: call of overloaded ‘New(v8::Isolate*, const char*&, uint32_t&)’ is ambiguous
  106.      return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
  107.                                                                    ^
  108. ../node_modules/nan/nan.h:768:67: note: candidates are:
  109. In file included from ../src/decoder/decoder.h:12:0,
  110.                  from ../src/decoder/init.cpp:1:
  111. /root/.node-gyp/4.4.3/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) <near match>
  112.  NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
  113.                                         ^
  114. /root/.node-gyp/4.4.3/include/node/node_buffer.h:31:40: note:   no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’
  115. /root/.node-gyp/4.4.3/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) <near match>
  116.  NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
  117.                                         ^
  118. /root/.node-gyp/4.4.3/include/node/node_buffer.h:43:40: note:   no known conversion for argument 2 from ‘const char*’ to ‘char*
  119. In file included from ../src/decoder/decoder.h:13:0,
  120.                  from ../src/decoder/init.cpp:1:
  121. ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanNewBufferHandle(uint32_t)’:
  122. ../node_modules/nan/nan.h:772:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocal<v8::Object>’ to ‘v8::Local<v8::Object>
  123.      return node::Buffer::New(v8::Isolate::GetCurrent(), size);
  124.                                                              ^
  125. ../node_modules/nan/nan.h: In function ‘v8::Local<v8::Object> NanBufferUse(char*, uint32_t)’:
  126. ../node_modules/nan/nan.h:779:12: error: ‘Use’ is not a member of ‘node::Buffer’
  127.      return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
  128.             ^
  129. make: *** [Release/obj.target/lwip_decoder/src/decoder/init.o] Error 1
  130. gyp ERR! build error
  131. gyp ERR! stack Error: `make` failed with exit code: 2
  132. gyp ERR! stack     at ChildProcess.onExit (/root/.nvm/v4.4.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
  133. gyp ERR! stack     at emitTwo (events.js:87:13)
  134. gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
  135. gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
  136. gyp ERR! System Linux 3.10.0-123.8.1.el7.x86_64
  137. gyp ERR! command "/root/.nvm/v4.4.3/bin/node" "/root/.nvm/v4.4.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
  138. gyp ERR! cwd /root/nodebb/node_modules/lwip
  139. gyp ERR! node -v v4.4.3
  140. gyp ERR! node-gyp -v v3.3.1
  141. gyp ERR! not ok
  142. npm ERR! Linux 3.10.0-123.8.1.el7.x86_64
  143. npm ERR! argv "/root/.nvm/v4.4.3/bin/node" "/root/.nvm/v4.4.3/bin/npm" "i" "--production"
  144. npm ERR! node v4.4.3
  145. npm ERR! npm  v2.15.1
  146. npm ERR! code ELIFECYCLE
  147.  
  148. npm ERR! mmmagic@0.3.15 install: `node-gyp rebuild`
  149. npm ERR! Exit status 1
  150. npm ERR!
  151. npm ERR! Failed at the mmmagic@0.3.15 install script 'node-gyp rebuild'.
  152. npm ERR! This is most likely a problem with the mmmagic package,
  153. npm ERR! not with npm itself.
  154. npm ERR! Tell the author that this fails on your system:
  155. npm ERR!     node-gyp rebuild
  156. npm ERR! You can get information on how to open an issue for this project with:
  157. npm ERR!     npm bugs mmmagic
  158. npm ERR! Or if that isn't available, you can get their info via:
  159. npm ERR!
  160. npm ERR!     npm owner ls mmmagic
  161. npm ERR! There is likely additional logging output above.
  162.  
  163. npm ERR! Please include the following file with any support request:
  164. npm ERR!     /root/nodebb/npm-debug.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement