Skip to content

npm install fails when using NodeJS v0.12.x #14

Description

@emilsoman

I get the following error when I try npm install when I'm on node v0.12.0 (Works fine when I tried on node v0.10.25) :

> kinect@0.3.0 install /Users/emil/Testing/node-kinect
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
  CXX(target) Release/obj.target/kinect/src/kinect.o
../src/kinect.cc:27:19: error: expected class name
  class Context : ObjectWrap {
                  ^
../src/kinect.cc:41:53: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
      static Handle<Value>  New              (const Arguments& args);
                                                    ^~~~~~~~~
                                                    v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/kinect.cc:42:53: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
      static Context*       GetContext       (const Arguments &args);
                                                    ^~~~~~~~~
                                                    v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/kinect.cc:45:53: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
      static Handle<Value>  Close            (const Arguments &args);
                                                    ^~~~~~~~~
                                                    v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/kinect.cc:48:53: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
      static Handle<Value>  Led              (const Arguments &args);
                                                    ^~~~~~~~~
                                                    v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/kinect.cc:51:53: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
      static Handle<Value>  Tilt             (const Arguments &args);
                                                    ^~~~~~~~~
                                                    v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/kinect.cc:54:53: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
      static Handle<Value>  SetDepthCallback (const Arguments &args);
                                                    ^~~~~~~~~
                                                    v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/kinect.cc:57:53: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
      static Handle<Value>  SetVideoCallback (const Arguments &args);
                                                    ^~~~~~~~~
                                                    v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/kinect.cc:60:53: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
      static Handle<Value>  Pause            (const Arguments &args);
                                                    ^~~~~~~~~
                                                    v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/kinect.cc:63:53: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
      static Handle<Value>  Resume           (const Arguments &args);
                                                    ^~~~~~~~~
                                                    v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/kinect.cc:69:7: error: unknown type name 'Buffer'
      Buffer*               videoBuffer_;
      ^
../src/kinect.cc:71:7: error: unknown type name 'Buffer'
      Buffer*               depthBuffer_;
      ^
../src/kinect.cc:83:29: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
  Context::GetContext(const Arguments &args) {
                            ^~~~~~~~~
                            v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/kinect.cc:84:12: error: use of undeclared identifier 'ObjectWrap'
    return ObjectWrap::Unwrap<Context>(args.This());
           ^
../src/kinect.cc:84:31: error: 'Context' does not refer to a value
    return ObjectWrap::Unwrap<Context>(args.This());
                              ^
../src/kinect.cc:27:9: note: declared here
  class Context : ObjectWrap {
        ^
../src/kinect.cc:84:44: error: member access into incomplete type 'const v8::internal::Arguments'
    return ObjectWrap::Unwrap<Context>(args.This());
                                           ^
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: forward declaration of 'v8::internal::Arguments'
class Arguments;
      ^
../src/kinect.cc:113:25: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
  Context::Resume(const Arguments& args) {
                        ^~~~~~~~~
                        v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../src/kinect.cc:115:12: error: no matching function for call to 'Undefined'
    return Undefined();
           ^~~~~~~~~
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:305:28: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
  friend Handle<Primitive> Undefined(Isolate* isolate);
                           ^
../src/kinect.cc:127:24: error: unknown type name 'Arguments'; did you mean 'v8::internal::Arguments'?
  Context::Pause(const Arguments& args) {
                       ^~~~~~~~~
                       v8::internal::Arguments
/Users/emil/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/kinect/src/kinect.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/emil/.nvm/v0.12.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/Users/emil/.nvm/v0.12.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/emil/Testing/node-kinect
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok

npm ERR! Darwin 14.0.0
npm ERR! argv "/Users/emil/.nvm/v0.12.0/bin/node" "/Users/emil/.nvm/v0.12.0/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! kinect@0.3.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kinect@0.3.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the kinect 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 their info via:
npm ERR!     npm owner ls kinect
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/emil/Testing/node-kinect/npm-debug.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions