I am going through the place-my-order tutorial and when I do:
donejs init place-my-order
I see several deprecation warnings as well as a bunch of what seems like node module related errors. It eventually finishes, but I am concerned about the existence of the warnings and errors.
Here is a chunk of the output (at least what I could cut and paste).
> donejs init place-my-order 15:58
Initializing new DoneJS application at /Users/thecountofzero/Sites/place-my-order
Installing donejs-cli
> spawn-sync@1.0.13 postinstall /Users/thecountofzero/Sites/place-my-order/node_modules/spawn-sync
> node postinstall
/Users/thecountofzero/Sites/place-my-order
└─┬ donejs-cli@0.6.0-pre.4
---TRUNCATED
npm WARN enoent ENOENT: no such file or directory, open '/Users/thecountofzero/Sites/place-my-order/package.json'
npm WARN place-my-order No description
npm WARN place-my-order No repository field.
npm WARN place-my-order No README data
npm WARN place-my-order No license field.
Installing generator-donejs
/Users/thecountofzero/Sites/place-my-order
├── donejs-cli@0.6.0-pre.4
└── generator-donejs@0.4.2
npm WARN enoent ENOENT: no such file or directory, open '/Users/thecountofzero/Sites/place-my-order/package.json'
npm WARN place-my-order No description
npm WARN place-my-order No repository field.
npm WARN place-my-order No README data
npm WARN place-my-order No license field.
? Project name place-my-order
? Project main folder src
? Description
? Project homepage url
? GitHub username or organization
? Author's Name
? Author's Email
? Author's Homepage
? Application keywords
? NPM version used 3
Installing packages for DoneJS v0.6.0-pre.4
create package.json
create readme.md
create documentjs.json
create .gitignore
create build.js
create production.html
create development.html
create src/test.html
create src/app.js
create src/index.stache
create src/index.md
create src/styles.less
create src/test/test.js
create src/test/functional.js
create src/models/fixtures/fixtures.js
create src/models/test.js
> websocket@1.0.22 install /Users/thecountofzero/Sites/place-my-order/node_modules/websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/bufferutil.node
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/validation.node
place-my-order@0.0.0 /Users/thecountofzero/Sites/place-my-order
├─┬ can@2.3.7
│ └─┬ can-simple-dom@0.2.23
│ └── micro-location@0.1.5
...TRUNCATED
npm WARN place-my-order@0.0.0 No description
npm WARN place-my-order@0.0.0 No repository field.
npm WARN place-my-order@0.0.0 No license field.
▐ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine steal-tools@0.13.0-pre.3: wanted: {"node":"0.10.x - 0.12.x || ^3.0.0"} (current: {"node":"5.3.0","npm":"3.5.3"})
WARN engine testee@0.2.3: wanted: {"node":"~0.10"} (current: {"node":"5.3.0","npm":"3.5.3"})
WARN engine steal-tools@0.13.0-pre.3: wanted: {"node":"0.10.x - 0.12.x || ^3.0.0"} (current: {"node":"5.3.0","npm":"3.5.3"})
npm WARN deprecated js-beautify@1.3.4: major indenting and html bug fixes in 1.4.0.
npm WARN deprecated MD5@1.3.0: deprecated, use lowercase 'md5@2.x' from now on
npm WARN deprecated lodash@1.0.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
loadDep:form-data ▌ ╢█████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:qs → afterAdd ▀ ╢█████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine hoek@0.7.6: wanted: {"node":"0.8.x"} (current: {"node":"5.3.0","npm":"3.5.3"})
loadDep:cryptiles ▀ ╢█████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
WARN engine cryptiles@0.1.3: wanted: {"node":"0.8.x"} (current: {"node":"5.3.0","npm":"3.5.3"})
npm WARN deprecated reverend@0.2.0: supplanted by path-to-regexp@v1.1.0#compile
npm WARN deprecated babel-core@5.8.14: Babel 5 is no longer being maintained. Upgrade to Babel 6.
loadDep:useragent → after ▐ ╢█████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
loadDep:useragent → addNa ▐ ╢█████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN prefer global marked@0.3.5 should be installed with -g
npm WARN prefer global jsonlint@1.6.2 should be installed with -g
npm WARN prefer global js-beautify@1.3.4 should be installed with -g
npm WARN prefer global firebase-tools@2.2.0 should be installed with -g
npm WARN prefer global babel@5.8.34 should be installed with -g
npm WARN prefer global divshot-cli@1.11.0 should be installed with -g
> bufferutil@1.1.0 install /Users/thecountofzero/Sites/place-my-order/node_modules/bufferutil
> node-gyp rebuild
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local _NanEnsureLocal(v8::Local val) {
^
../node_modules/nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local _NanEnsureLocal(v8::Handle val) {
^
../node_modules/nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node'
, node::smalloc::FreeCallback callback
~~~~~~^
../node_modules/nan/nan.h:672:12: error: no matching function for call to 'New'
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^~~~~~~~~~~~~~~~~
/Users/thecountofzero/.node-gyp/5.3.0/include/node/node_buffer.h:31:40: note: candidate function not viable: no known conversion from 'uint32_t' (aka 'unsigned int') to
'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate,
^
/Users/thecountofzero/.node-gyp/5.3.0/include/node/node_buffer.h:43:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate,
^
/Users/thecountofzero/.node-gyp/5.3.0/include/node/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate, size_t length);
^
/Users/thecountofzero/.node-gyp/5.3.0/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal New(v8::Isolate* isolate,
^
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h:676:12: error: no viable conversion from 'v8::MaybeLocal' to 'v8::Local'
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from
'v8::MaybeLocal' to 'const v8::Local &' for 1st argument
class Local {
^
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from
'v8::MaybeLocal' to 'v8::Local &&' for 1st argument
class Local {
^
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
V8_INLINE Local(Local that)
^
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S *' against 'v8::MaybeLocal'
V8_INLINE Local(S* that)
^
In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h:683:26: error: no member named 'Use' in namespace 'node::Buffer'
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
~~~~~~~~~~~~~~^
In file included from ../src/bufferutil.cc:7:
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type 'v8::Value *'
TYPE_CHECK(T, S);
^~~~~~~~~~~~~~~~
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
*(static_cast(0)) = static_cast(0); \
^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:414:12: note: in instantiation of function template specialization 'v8::Local::Local' requested here
return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
^
In file included from ../src/bufferutil.cc:7:
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:221:5: error: assigning to 'v8::Boolean *volatile' from incompatible type 'v8::Value *'
TYPE_CHECK(T, S);
^~~~~~~~~~~~~~~~
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
*(static_cast(0)) = static_cast(0); \
^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:424:12: note: in instantiation of function template specialization 'v8::Local::Local' requested here
return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
^
In file included from ../src/bufferutil.cc:7:
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:221:5: error: assigning to 'v8::Function *volatile' from incompatible type 'v8::Value *'
TYPE_CHECK(T, S);
^~~~~~~~~~~~~~~~
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
*(static_cast(0)) = static_cast(0); \
^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1514:12: note: in instantiation of function template specialization 'v8::Local::Local' requested here
return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
^
In file included from ../src/bufferutil.cc:7:
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:221:5: error: assigning to 'v8::Object *volatile' from incompatible type 'v8::Value *'
TYPE_CHECK(T, S);
^~~~~~~~~~~~~~~~
/Users/thecountofzero/.node-gyp/5.3.0/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
*(static_cast(0)) = static_cast(0); \
^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1632:12: note: in instantiation of function template specialization 'v8::Local::Local' requested here
return NanEscapeScope(handle->Get(NanNew(key)).As());
^
../node_modules/nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
^
9 errors generated.
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
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 Darwin 15.2.0
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 /Users/thecountofzero/Sites/place-my-order/node_modules/bufferutil
gyp ERR! node -v v5.3.0
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm WARN install:bufferutil@1.1.0 bufferutil@1.1.0 install: `node-gyp rebuild`
npm WARN install:bufferutil@1.1.0 Exit status 1
> dtrace-provider@0.6.0 install /Users/thecountofzero/Sites/place-my-order/node_modules/dtrace-provider
> node scripts/install.js
> bufferutil@1.2.1 install /Users/thecountofzero/Sites/place-my-order/node_modules/engine.io-client/node_modules/bufferutil
> node-gyp rebuild

