Advertisement
Guest User

Untitled

a guest
Sep 14th, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.88 KB | None | 0 0
  1. Konstantins-MBP:~ konstantin$ npm install -g mean-cli
  2. /
  3. > mean-cli@0.10.14 preinstall /usr/local/lib/node_modules/mean-cli
  4. > node ./scripts/preinstall
  5.  
  6. npm WARN deprecated json-file-plus@2.0.0: Before v3.0.0, errors in fs.writeFile would not be propagated
  7.  
  8. > mean-health@0.1.7 postinstall /usr/local/lib/node_modules/mean-cli/node_modules/mean-health
  9. > node ./postinstall.js
  10.  
  11.  
  12. > kerberos@0.0.12 install /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
  13. > (node-gyp rebuild 2> builderror.log) || (exit 0)
  14.  
  15. npm WARN installMany nopt was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  16. npm WARN installMany npmlog was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  17. npm WARN installMany request was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  18. npm WARN installMany semver was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  19. npm WARN installMany tar was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  20. npm WARN installMany tar-pack was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  21. npm WARN installMany mkdirp was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  22. npm WARN installMany rc was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  23. npm WARN installMany rimraf was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  24. \
  25. > bson-ext@0.1.12 install /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext
  26. > (node-pre-gyp install --fallback-to-build) || (node-gyp rebuild 2> builderror.log) || (exit 0)
  27.  
  28. CXX(target) Release/obj.target/bson/ext/bson.o
  29. In file included from ../ext/bson.cc:36:
  30. In file included from ../ext/bson.h:17:
  31. ../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
  32. NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
  33. ^
  34. ../node_modules/nan/nan.h:256:25: note: previous definition is here
  35. NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
  36. ^
  37. ../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace
  38. 'node'
  39. , node::smalloc::FreeCallback callback
  40. ~~~~~~^
  41. ../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
  42. return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
  43. ^~~~~~~~~~~~~~~~~
  44. /Users/konstantin/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note:
  45. candidate function not viable: no known conversion from 'uint32_t'
  46. (aka 'unsigned int') to 'enum encoding' for 3rd argument
  47. NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
  48. ^
  49. /Users/konstantin/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note:
  50. candidate function not viable: 2nd argument ('const char *') would lose
  51. const qualifier
  52. NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
  53. ^
  54. /Users/konstantin/.node-gyp/4.0.0/include/node/node_buffer.h:28:40: note:
  55. candidate function not viable: requires 2 arguments, but 3 were provided
  56. NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
  57. ^
  58. /Users/konstantin/.node-gyp/4.0.0/include/node/node_buffer.h:36:40: note:
  59. candidate function not viable: requires 5 arguments, but 3 were provided
  60. NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
  61. ^
  62. In file included from ../ext/bson.cc:36:
  63. In file included from ../ext/bson.h:17:
  64. ../node_modules/nan/nan.h:676:12: error: no viable conversion from
  65. 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
  66. return node::Buffer::New(v8::Isolate::GetCurrent(), size);
  67. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  68. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:210:7: note:
  69. candidate constructor (the implicit copy constructor) not viable: no known
  70. conversion from 'v8::MaybeLocal<v8::Object>' to 'const
  71. v8::Local<v8::Object> &' for 1st argument
  72. class Local {
  73. ^
  74. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:210:7: note:
  75. candidate constructor (the implicit move constructor) not viable: no known
  76. conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&'
  77. for 1st argument
  78. class Local {
  79. ^
  80. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:214:13: note:
  81. candidate template ignored: could not match 'Local' against 'MaybeLocal'
  82. V8_INLINE Local(Local<S> that)
  83. ^
  84. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:326:13: note:
  85. candidate template ignored: could not match 'S *' against
  86. 'v8::MaybeLocal<v8::Object>'
  87. V8_INLINE Local(S* that)
  88. ^
  89. In file included from ../ext/bson.cc:36:
  90. In file included from ../ext/bson.h:17:
  91. ../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace
  92. 'node::Buffer'
  93. return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
  94. ~~~~~~~~~~~~~~^
  95. In file included from ../ext/bson.cc:14:
  96. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
  97. assigning to 'v8::Primitive *volatile' from incompatible type
  98. 'v8::Value *'
  99. TYPE_CHECK(T, S);
  100. ^~~~~~~~~~~~~~~~
  101. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
  102. expanded from macro 'TYPE_CHECK'
  103. *(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
  104. ^ ~~~~~~~~~~~~~~~~~~
  105. ../node_modules/nan/nan.h:414:12: note: in instantiation of function template
  106. specialization 'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
  107. return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
  108. ^
  109. ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
  110. # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
  111. ^
  112. In file included from ../ext/bson.cc:14:
  113. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
  114. assigning to 'v8::Boolean *volatile' from incompatible type 'v8::Value *'
  115. TYPE_CHECK(T, S);
  116. ^~~~~~~~~~~~~~~~
  117. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
  118. expanded from macro 'TYPE_CHECK'
  119. *(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
  120. ^ ~~~~~~~~~~~~~~~~~~
  121. ../node_modules/nan/nan.h:424:12: note: in instantiation of function template
  122. specialization 'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
  123. return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
  124. ^
  125. ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
  126. # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
  127. ^
  128. In file included from ../ext/bson.cc:14:
  129. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
  130. assigning to 'v8::Function *volatile' from incompatible type 'v8::Value *'
  131. TYPE_CHECK(T, S);
  132. ^~~~~~~~~~~~~~~~
  133. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
  134. expanded from macro 'TYPE_CHECK'
  135. *(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
  136. ^ ~~~~~~~~~~~~~~~~~~
  137. ../node_modules/nan/nan.h:1514:12: note: in instantiation of function template
  138. specialization 'v8::Local<v8::Function>::Local<v8::Value>' requested here
  139. return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
  140. ^
  141. ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
  142. # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
  143. ^
  144. In file included from ../ext/bson.cc:14:
  145. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
  146. assigning to 'v8::Object *volatile' from incompatible type 'v8::Value *'
  147. TYPE_CHECK(T, S);
  148. ^~~~~~~~~~~~~~~~
  149. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
  150. expanded from macro 'TYPE_CHECK'
  151. *(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
  152. ^ ~~~~~~~~~~~~~~~~~~
  153. ../node_modules/nan/nan.h:1632:12: note: in instantiation of function template
  154. specialization 'v8::Local<v8::Object>::Local<v8::Value>' requested here
  155. return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
  156. ^
  157. ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
  158. # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
  159. ^
  160. 9 errors generated.
  161. make: *** [Release/obj.target/bson/ext/bson.o] Error 1
  162. gyp ERR! build error
  163. gyp ERR! stack Error: `make` failed with exit code: 2
  164. gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:270:23)
  165. gyp ERR! stack at emitTwo (events.js:87:13)
  166. gyp ERR! stack at ChildProcess.emit (events.js:172:7)
  167. gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
  168. gyp ERR! System Darwin 14.5.0
  169. gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release/bson.node" "--module_name=bson" "--module_path=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release"
  170. gyp ERR! cwd /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext
  171. gyp ERR! node -v v4.0.0
  172. gyp ERR! node-gyp -v v3.0.3
  173. gyp ERR! not ok
  174. node-pre-gyp ERR! build error
  175. node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release/bson.node --module_name=bson --module_path=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release' (1)
  176. node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
  177. node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
  178. node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
  179. node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:817:16)
  180. node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
  181. node-pre-gyp ERR! System Darwin 14.5.0
  182. node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
  183. node-pre-gyp ERR! cwd /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext
  184. node-pre-gyp ERR! node -v v4.0.0
  185. node-pre-gyp ERR! node-pre-gyp -v v0.6.4
  186. node-pre-gyp ERR! not ok
  187. Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release/bson.node --module_name=bson --module_path=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release' (1)
  188. /usr/local/bin/mean -> /usr/local/lib/node_modules/mean-cli/bin/mean
  189. /usr/local/bin/mean-authorize -> /usr/local/lib/node_modules/mean-cli/bin/mean-authorize
  190. /usr/local/bin/mean-whoami -> /usr/local/lib/node_modules/mean-cli/bin/mean-whoami
  191. /usr/local/bin/mean-init -> /usr/local/lib/node_modules/mean-cli/bin/mean-init
  192. /usr/local/bin/mean-login -> /usr/local/lib/node_modules/mean-cli/bin/mean-login
  193. /usr/local/bin/mean-addKey -> /usr/local/lib/node_modules/mean-cli/bin/mean-addKey
  194. /usr/local/bin/mean-publish -> /usr/local/lib/node_modules/mean-cli/bin/mean-publish
  195. /usr/local/bin/mean-search -> /usr/local/lib/node_modules/mean-cli/bin/mean-search
  196. /usr/local/bin/mean-logs -> /usr/local/lib/node_modules/mean-cli/bin/mean-logs
  197. /usr/local/bin/mean-register -> /usr/local/lib/node_modules/mean-cli/bin/mean-register
  198. /usr/local/bin/mean-deploy -> /usr/local/lib/node_modules/mean-cli/bin/mean-deploy
  199. /usr/local/bin/mean-uninstall -> /usr/local/lib/node_modules/mean-cli/bin/mean-uninstall
  200. /usr/local/bin/mean-install -> /usr/local/lib/node_modules/mean-cli/bin/mean-install
  201. /usr/local/bin/mean-package -> /usr/local/lib/node_modules/mean-cli/bin/mean-package
  202. /usr/local/bin/mean-logout -> /usr/local/lib/node_modules/mean-cli/bin/mean-logout
  203. /usr/local/bin/mean-status -> /usr/local/lib/node_modules/mean-cli/bin/mean-status
  204. /usr/local/bin/mean-list -> /usr/local/lib/node_modules/mean-cli/bin/mean-list
  205. /usr/local/bin/mean-disable -> /usr/local/lib/node_modules/mean-cli/bin/mean-disable
  206. /usr/local/bin/mean-user -> /usr/local/lib/node_modules/mean-cli/bin/mean-user
  207. /usr/local/bin/mean-docs -> /usr/local/lib/node_modules/mean-cli/bin/mean-docs
  208. /usr/local/bin/mean-postinstall -> /usr/local/lib/node_modules/mean-cli/bin/mean-postinstall
  209. /usr/local/bin/mean-preinstall -> /usr/local/lib/node_modules/mean-cli/bin/mean-preinstall
  210. /usr/local/bin/mean-enable -> /usr/local/lib/node_modules/mean-cli/bin/mean-enable
  211. mean-cli@0.10.14 /usr/local/lib/node_modules/mean-cli
  212. ├── opener@1.4.1
  213. ├── async-series@0.0.1
  214. ├── progress@1.1.8
  215. ├── crypto@0.0.3
  216. ├── shelljs@0.3.0
  217. ├── chalk@0.5.1 (ansi-styles@1.1.0, escape-string-regexp@1.0.3, supports-color@0.2.0, strip-ansi@0.3.0, has-ansi@0.1.0)
  218. ├── commander@2.8.1 (graceful-readlink@1.0.1)
  219. ├── lodash@2.4.2
  220. ├── mean-health@0.1.7
  221. ├── json-file-plus@2.0.0 (is@2.0.2, node.extend@1.1.5, promiseback@2.0.1)
  222. ├── prompt@0.2.14 (revalidator@0.1.8, pkginfo@0.3.0, read@1.0.7, winston@0.8.3, utile@0.2.1)
  223. ├── request@2.61.0 (aws-sign2@0.5.0, forever-agent@0.6.1, caseless@0.11.0, stringstream@0.0.4, oauth-sign@0.8.0, tunnel-agent@0.4.1, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, node-uuid@1.4.3, qs@4.0.0, form-data@1.0.0-rc3, combined-stream@1.0.5, mime-types@2.1.6, bl@1.0.0, http-signature@0.11.0, tough-cookie@2.0.0, hawk@3.1.0, har-validator@1.8.0)
  224. ├── inquirer@0.8.5 (figures@1.3.5, ansi-regex@1.1.1, cli-width@1.0.1, through@2.3.8, readline2@0.1.1, chalk@1.1.1, lodash@3.10.1, rx@2.5.3)
  225. ├── bower@1.5.2 (is-root@1.0.0, junk@1.0.2, stringify-object@1.0.1, user-home@1.1.1, chmodr@0.1.0, abbrev@1.0.7, archy@1.0.0, opn@1.0.2, bower-logger@0.2.2, bower-endpoint-parser@0.2.2, graceful-fs@3.0.8, lockfile@1.0.1, lru-cache@2.7.0, nopt@3.0.4, retry@0.6.1, tmp@0.0.24, chalk@1.1.1, q@1.4.1, request-progress@0.3.1, promptly@0.2.0, semver@2.3.2, shell-quote@1.4.3, p-throttler@0.1.1, bower-json@0.4.0, fstream@1.0.8, mkdirp@0.5.0, which@1.1.2, insight@0.5.3, tar-fs@1.8.1, glob@4.5.3, fstream-ignore@1.0.2, rimraf@2.4.3, decompress-zip@0.1.0, update-notifier@0.3.2, github@0.2.4, bower-registry-client@0.3.0, request@2.53.0, cardinal@0.4.4, deep-sort-object@0.1.1, mout@0.11.0, bower-config@0.6.1, configstore@0.3.2, inquirer@0.8.0, handlebars@2.0.0)
  226. ├── npm@2.14.3
  227. └── mongoose@4.0.8 (regexp-clone@0.0.1, sliced@0.0.5, muri@1.0.0, hooks-fixed@1.0.2, mpromise@0.5.4, kareem@1.0.1, mpath@0.1.1, async@0.9.0, ms@0.1.0, mquery@1.6.1, mongodb@2.0.34, bson@0.3.2)
  228. Konstantins-MBP:~ konstantin$ npm uninstall -g mean-cli
  229. unbuild mean-cli@0.10.14
  230. Konstantins-MBP:~ konstantin$ clear
  231.  
  232. Konstantins-MBP:~ konstantin$ sudo npm install -g mean-cli
  233. Password:
  234. Sorry, try again.
  235. Password:
  236. sudo: 1 incorrect password attempt
  237. Konstantins-MBP:~ konstantin$ clear
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256. Konstantins-MBP:~ konstantin$ sudo npm install -g mean-cli
  257. Password:
  258. \
  259. > mean-cli@0.10.14 preinstall /usr/local/lib/node_modules/mean-cli
  260. > node ./scripts/preinstall
  261.  
  262. npm WARN deprecated json-file-plus@2.0.0: Before v3.0.0, errors in fs.writeFile would not be propagated
  263.  
  264. > mean-health@0.1.7 postinstall /usr/local/lib/node_modules/mean-cli/node_modules/mean-health
  265. > node ./postinstall.js
  266.  
  267.  
  268. > kerberos@0.0.12 install /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos
  269. > (node-gyp rebuild 2> builderror.log) || (exit 0)
  270.  
  271. npm WARN installMany nopt was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  272. npm WARN installMany npmlog was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  273. npm WARN installMany request was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  274. npm WARN installMany semver was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  275. npm WARN installMany tar was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  276. npm WARN installMany tar-pack was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  277. npm WARN installMany mkdirp was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  278. npm WARN installMany rc was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  279. npm WARN installMany rimraf was bundled with node-pre-gyp@0.6.4, but bundled package wasn't found in unpacked tree
  280.  
  281. > bson-ext@0.1.12 install /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext
  282. > (node-pre-gyp install --fallback-to-build) || (node-gyp rebuild 2> builderror.log) || (exit 0)
  283.  
  284. CXX(target) Release/obj.target/bson/ext/bson.o
  285. In file included from ../ext/bson.cc:36:
  286. In file included from ../ext/bson.h:17:
  287. ../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
  288. NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
  289. ^
  290. ../node_modules/nan/nan.h:256:25: note: previous definition is here
  291. NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
  292. ^
  293. ../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace
  294. 'node'
  295. , node::smalloc::FreeCallback callback
  296. ~~~~~~^
  297. ../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
  298. return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
  299. ^~~~~~~~~~~~~~~~~
  300. /Users/konstantin/.node-gyp/4.0.0/include/node/node_buffer.h:31:40: note:
  301. candidate function not viable: no known conversion from 'uint32_t'
  302. (aka 'unsigned int') to 'enum encoding' for 3rd argument
  303. NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
  304. ^
  305. /Users/konstantin/.node-gyp/4.0.0/include/node/node_buffer.h:43:40: note:
  306. candidate function not viable: 2nd argument ('const char *') would lose
  307. const qualifier
  308. NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
  309. ^
  310. /Users/konstantin/.node-gyp/4.0.0/include/node/node_buffer.h:28:40: note:
  311. candidate function not viable: requires 2 arguments, but 3 were provided
  312. NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
  313. ^
  314. /Users/konstantin/.node-gyp/4.0.0/include/node/node_buffer.h:36:40: note:
  315. candidate function not viable: requires 5 arguments, but 3 were provided
  316. NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
  317. ^
  318. In file included from ../ext/bson.cc:36:
  319. In file included from ../ext/bson.h:17:
  320. ../node_modules/nan/nan.h:676:12: error: no viable conversion from
  321. 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
  322. return node::Buffer::New(v8::Isolate::GetCurrent(), size);
  323. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  324. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:210:7: note:
  325. candidate constructor (the implicit copy constructor) not viable: no known
  326. conversion from 'v8::MaybeLocal<v8::Object>' to 'const
  327. v8::Local<v8::Object> &' for 1st argument
  328. class Local {
  329. ^
  330. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:210:7: note:
  331. candidate constructor (the implicit move constructor) not viable: no known
  332. conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&'
  333. for 1st argument
  334. class Local {
  335. ^
  336. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:214:13: note:
  337. candidate template ignored: could not match 'Local' against 'MaybeLocal'
  338. V8_INLINE Local(Local<S> that)
  339. ^
  340. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:326:13: note:
  341. candidate template ignored: could not match 'S *' against
  342. 'v8::MaybeLocal<v8::Object>'
  343. V8_INLINE Local(S* that)
  344. ^
  345. In file included from ../ext/bson.cc:36:
  346. In file included from ../ext/bson.h:17:
  347. ../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace
  348. 'node::Buffer'
  349. return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
  350. ~~~~~~~~~~~~~~^
  351. In file included from ../ext/bson.cc:14:
  352. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
  353. assigning to 'v8::Primitive *volatile' from incompatible type
  354. 'v8::Value *'
  355. TYPE_CHECK(T, S);
  356. ^~~~~~~~~~~~~~~~
  357. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
  358. expanded from macro 'TYPE_CHECK'
  359. *(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
  360. ^ ~~~~~~~~~~~~~~~~~~
  361. ../node_modules/nan/nan.h:414:12: note: in instantiation of function template
  362. specialization 'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
  363. return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
  364. ^
  365. ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
  366. # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
  367. ^
  368. In file included from ../ext/bson.cc:14:
  369. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
  370. assigning to 'v8::Boolean *volatile' from incompatible type 'v8::Value *'
  371. TYPE_CHECK(T, S);
  372. ^~~~~~~~~~~~~~~~
  373. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
  374. expanded from macro 'TYPE_CHECK'
  375. *(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
  376. ^ ~~~~~~~~~~~~~~~~~~
  377. ../node_modules/nan/nan.h:424:12: note: in instantiation of function template
  378. specialization 'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
  379. return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
  380. ^
  381. ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
  382. # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
  383. ^
  384. In file included from ../ext/bson.cc:14:
  385. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
  386. assigning to 'v8::Function *volatile' from incompatible type 'v8::Value *'
  387. TYPE_CHECK(T, S);
  388. ^~~~~~~~~~~~~~~~
  389. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
  390. expanded from macro 'TYPE_CHECK'
  391. *(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
  392. ^ ~~~~~~~~~~~~~~~~~~
  393. ../node_modules/nan/nan.h:1514:12: note: in instantiation of function template
  394. specialization 'v8::Local<v8::Function>::Local<v8::Value>' requested here
  395. return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
  396. ^
  397. ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
  398. # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
  399. ^
  400. In file included from ../ext/bson.cc:14:
  401. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:221:5: error:
  402. assigning to 'v8::Object *volatile' from incompatible type 'v8::Value *'
  403. TYPE_CHECK(T, S);
  404. ^~~~~~~~~~~~~~~~
  405. /Users/konstantin/.node-gyp/4.0.0/include/node/v8.h:180:37: note:
  406. expanded from macro 'TYPE_CHECK'
  407. *(static_cast<T* volatile*>(0)) = static_cast<S*>(0); \
  408. ^ ~~~~~~~~~~~~~~~~~~
  409. ../node_modules/nan/nan.h:1632:12: note: in instantiation of function template
  410. specialization 'v8::Local<v8::Object>::Local<v8::Value>' requested here
  411. return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
  412. ^
  413. ../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
  414. # define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
  415. ^
  416. 9 errors generated.
  417. make: *** [Release/obj.target/bson/ext/bson.o] Error 1
  418. gyp ERR! build error
  419. gyp ERR! stack Error: `make` failed with exit code: 2
  420. gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/node-gyp/lib/build.js:270:23)
  421. gyp ERR! stack at emitTwo (events.js:87:13)
  422. gyp ERR! stack at ChildProcess.emit (events.js:172:7)
  423. gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
  424. gyp ERR! System Darwin 14.5.0
  425. gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release/bson.node" "--module_name=bson" "--module_path=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release"
  426. gyp ERR! cwd /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext
  427. gyp ERR! node -v v4.0.0
  428. gyp ERR! node-gyp -v v3.0.3
  429. gyp ERR! not ok
  430. node-pre-gyp ERR! build error
  431. node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release/bson.node --module_name=bson --module_path=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release' (1)
  432. node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
  433. node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
  434. node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
  435. node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:817:16)
  436. node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
  437. node-pre-gyp ERR! System Darwin 14.5.0
  438. node-pre-gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
  439. node-pre-gyp ERR! cwd /usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext
  440. node-pre-gyp ERR! node -v v4.0.0
  441. node-pre-gyp ERR! node-pre-gyp -v v0.6.4
  442. node-pre-gyp ERR! not ok
  443. Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release/bson.node --module_name=bson --module_path=/usr/local/lib/node_modules/mean-cli/node_modules/mongoose/node_modules/bson/node_modules/bson-ext/build/Release' (1)
  444. npm ERR! registry error parsing json
  445. npm ERR! registry error parsing json
  446. /usr/local/bin/mean -> /usr/local/lib/node_modules/mean-cli/bin/mean
  447. /usr/local/bin/mean-init -> /usr/local/lib/node_modules/mean-cli/bin/mean-init
  448. /usr/local/bin/mean-authorize -> /usr/local/lib/node_modules/mean-cli/bin/mean-authorize
  449. /usr/local/bin/mean-whoami -> /usr/local/lib/node_modules/mean-cli/bin/mean-whoami
  450. /usr/local/bin/mean-login -> /usr/local/lib/node_modules/mean-cli/bin/mean-login
  451. /usr/local/bin/mean-addKey -> /usr/local/lib/node_modules/mean-cli/bin/mean-addKey
  452. /usr/local/bin/mean-publish -> /usr/local/lib/node_modules/mean-cli/bin/mean-publish
  453. /usr/local/bin/mean-deploy -> /usr/local/lib/node_modules/mean-cli/bin/mean-deploy
  454. /usr/local/bin/mean-search -> /usr/local/lib/node_modules/mean-cli/bin/mean-search
  455. /usr/local/bin/mean-logs -> /usr/local/lib/node_modules/mean-cli/bin/mean-logs
  456. /usr/local/bin/mean-register -> /usr/local/lib/node_modules/mean-cli/bin/mean-register
  457. /usr/local/bin/mean-install -> /usr/local/lib/node_modules/mean-cli/bin/mean-install
  458. /usr/local/bin/mean-preinstall -> /usr/local/lib/node_modules/mean-cli/bin/mean-preinstall
  459. /usr/local/bin/mean-postinstall -> /usr/local/lib/node_modules/mean-cli/bin/mean-postinstall
  460. /usr/local/bin/mean-uninstall -> /usr/local/lib/node_modules/mean-cli/bin/mean-uninstall
  461. /usr/local/bin/mean-package -> /usr/local/lib/node_modules/mean-cli/bin/mean-package
  462. /usr/local/bin/mean-user -> /usr/local/lib/node_modules/mean-cli/bin/mean-user
  463. /usr/local/bin/mean-list -> /usr/local/lib/node_modules/mean-cli/bin/mean-list
  464. /usr/local/bin/mean-docs -> /usr/local/lib/node_modules/mean-cli/bin/mean-docs
  465. /usr/local/bin/mean-status -> /usr/local/lib/node_modules/mean-cli/bin/mean-status
  466. /usr/local/bin/mean-logout -> /usr/local/lib/node_modules/mean-cli/bin/mean-logout
  467. /usr/local/bin/mean-disable -> /usr/local/lib/node_modules/mean-cli/bin/mean-disable
  468. /usr/local/bin/mean-enable -> /usr/local/lib/node_modules/mean-cli/bin/mean-enable
  469. mean-cli@0.10.14 /usr/local/lib/node_modules/mean-cli
  470. ├── opener@1.4.1
  471. ├── async-series@0.0.1
  472. ├── progress@1.1.8
  473. ├── crypto@0.0.3
  474. ├── commander@2.8.1 (graceful-readlink@1.0.1)
  475. ├── shelljs@0.3.0
  476. ├── chalk@0.5.1 (ansi-styles@1.1.0, escape-string-regexp@1.0.3, supports-color@0.2.0, strip-ansi@0.3.0, has-ansi@0.1.0)
  477. ├── lodash@2.4.2
  478. ├── mean-health@0.1.7
  479. ├── request@2.61.0 (aws-sign2@0.5.0, forever-agent@0.6.1, caseless@0.11.0, stringstream@0.0.4, oauth-sign@0.8.0, tunnel-agent@0.4.1, isstream@0.1.2, json-stringify-safe@5.0.1, extend@3.0.0, node-uuid@1.4.3, qs@4.0.0, combined-stream@1.0.5, form-data@1.0.0-rc3, http-signature@0.11.0, mime-types@2.1.6, tough-cookie@2.0.0, har-validator@1.8.0, hawk@3.1.0, bl@1.0.0)
  480. ├── prompt@0.2.14 (revalidator@0.1.8, pkginfo@0.3.0, read@1.0.7, winston@0.8.3, utile@0.2.1)
  481. ├── inquirer@0.8.5 (figures@1.3.5, ansi-regex@1.1.1, cli-width@1.0.1, through@2.3.8, readline2@0.1.1, chalk@1.1.1, lodash@3.10.1, rx@2.5.3)
  482. ├── npm@2.14.3
  483. ├── mongoose@4.0.8 (regexp-clone@0.0.1, sliced@0.0.5, muri@1.0.0, hooks-fixed@1.0.2, mpromise@0.5.4, kareem@1.0.1, mpath@0.1.1, async@0.9.0, ms@0.1.0, mquery@1.6.1, mongodb@2.0.34, bson@0.3.2)
  484. ├── json-file-plus@2.0.0 (is@2.0.2, node.extend@1.1.5, promiseback@2.0.1)
  485. └── bower@1.5.2 (is-root@1.0.0, junk@1.0.2, stringify-object@1.0.1, user-home@1.1.1, chmodr@0.1.0, abbrev@1.0.7, archy@1.0.0, opn@1.0.2, bower-logger@0.2.2, bower-endpoint-parser@0.2.2, graceful-fs@3.0.8, lockfile@1.0.1, lru-cache@2.7.0, nopt@3.0.4, retry@0.6.1, tmp@0.0.24, q@1.4.1, semver@2.3.2, chalk@1.1.1, request-progress@0.3.1, fstream@1.0.8, p-throttler@0.1.1, shell-quote@1.4.3, promptly@0.2.0, mkdirp@0.5.0, which@1.1.2, bower-json@0.4.0, insight@0.5.3, glob@4.5.3, fstream-ignore@1.0.2, rimraf@2.4.3, tar-fs@1.8.1, decompress-zip@0.1.0, github@0.2.4, update-notifier@0.3.2, cardinal@0.4.4, bower-registry-client@0.3.0, request@2.53.0, mout@0.11.0, deep-sort-object@0.1.1, bower-config@0.6.1, configstore@0.3.2, inquirer@0.8.0, handlebars@2.0.0)
  486. Konstantins-MBP:~ konstantin$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement